[Lazarus] How can I increment/decrement a alphanumeric value?

silvioprog silvioprog at gmail.com
Sat Aug 21 15:34:28 CEST 2010


  Em 21/08/2010 09:51, Alberto Narduzzi escreveu:
> Antônio,
>
> why reinvent the wheel...?
>
> as already pointed out by Henry yesterday:
>
> http://freepascal.org/docs-html/rtl/strutils/dec2numb.html
> http://freepascal.org/docs-html/rtl/strutils/numb2dec.html
>
> it is as easy as:
>
> Uses strutils;
>
> Procedure IncrementHex(Var HexS:String);
> Begin
>   HexS := dec2numb(numb2dec(HexS) + 1);
> End;
>
>
> Cheers, A.
Hi,

This does not solve my problem, I need to use characters from A to Z.

Thanks,

Silvio Clécio




More information about the Lazarus mailing list