If you are just doing basic integers you could just check the characters in
the string - 0..9
----- Original Message -----
From: "Roderick Rebada" <[EMAIL PROTECTED]>
To: "NZ Borland Developers Group - Delphi List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 21, 2004 1:55 PM
Subject: [DUG] Val Function
> Function IsNumber(A:String):Boolean;
> Var
> i,j:Integer;
> Begin
> Val(A,I,j);
> result:=j=0;
> End;
>
> Why is that
> IsNumber('A19')=FALSE
> while
> IsNumber('X19')=TRUE
>
> Val function assumes 'X19' is Hexadecimal.
> Can I force it to interpret the parameter as
> string? Any clues?
>
> cheers
>
> _______________________________________________
> Delphi mailing list
> [EMAIL PROTECTED]
> http://ns3.123.co.nz/mailman/listinfo/delphi
>
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi