Cal val twice, but the second time reverse the string... Eg. S:= 'x19'; Result:= IsNumber(s) and IsNumber(ReverseString(s));
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roderick Rebada Sent: Wednesday, 21 July 2004 1:56 p.m. To: NZ Borland Developers Group - Delphi List 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
