Re: parsing a txt file

new topic     » goto parent     » topic index » view thread      » older message » newer message

{50, 48, 10} is equal to "20\n"

You need to do this:
sequence junk 
junk = value( "20\n" )

myVar = junk[2]


On Thu, 25 Nov 2004 14:06:32 +1000, spent memory <spent.memory at gmail.com>
wrote:
> 
> i am reading into my program a text file. in this text file i seek to
> a certain line and assign 1 of my variables the value which happens to
> be 20. however when i goto use this variable later i get a type check
> failure saying the variable is {50,48,10}. I know this converts to 20
> but i have forgotten how to convert it so that i can use it. can
> someone please remind me. thanks
> 
> 


-- 
MrTrick

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu