Hi,
Will 'o' give octal as well ?
Maurice
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Rohit Gupta
Sent: Wednesday, 21 July 2004 2:14 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Val Function
locally, replace X with some other character than do a Val
Date sent: Wed, 21 Jul 2004 13:55:33 +1200
From: "Roderick Rebada" <[EMAIL PROTECTED]>
To: "NZ Borland Developers Group - Delphi List"
<[EMAIL PROTECTED]>
Subject: [DUG] Val Function
Send reply to: NZ Borland Developers Group - Delphi List
<[EMAIL PROTECTED]>
<mailto:[EMAIL PROTECTED]>
<mailto:[EMAIL PROTECTED]>
> 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
>
Regards
Rohit
======================================================================
CFL - Computer Fanatics Ltd. 21 Barry's Point Road, AKL, New Zealand
PH (649) 489-2280
FX (649) 489-2290
email [EMAIL PROTECTED] or [EMAIL PROTECTED]
======================================================================
_______________________________________________
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