[Gambas-user] readlink and hex to decimal
Reinhard Ohm
reinhardohm at ...1389...
Mon Mar 6 10:45:41 CET 2006
Am Montag, 6. März 2006 06:14 schrieb R. Stormo:
> Then you should put it in like a string 40FF .
> input #hFile, myvar
> myVar = "&H" & Myvar
>
> Print MyVar
>
> That should work.
>
> Your input does not mix hex or decimal? If it does maybee you hould save
> your values with a delimiter to sort out if they are decimal or hex
> Like h40ff
> input #hFile, myvar
> if instr(lower(myvar),"h")>0 then myvar = "&" & myvar
> myVar = "&H" & Myvar
>
> Print MyVar
hm,
the val() function will work but i find it not the right one!
str() for Hex nö nö!
More information about the User
mailing list