[Gambas-user] readlink and hex to decimal

R. Stormo rohnny at ...1248...
Mon Mar 6 06:14:35 CET 2006


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



-- 
Regards
	Rohnny Stormo


-----------------------------------------
Gambas brings Basic to Linux.
My Gambas Community http://forum.stormweb.no
--
View this message in context: http://www.nabble.com/readlink-and-hex-to-decimal-t1230848.html#a3257125
Sent from the gambas-user forum at Nabble.com.





More information about the User mailing list