Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!waikato.ac.nz!comp.vuw.ac.nz!actrix!David.Empson From: David.Empson@actrix.gen.nz (David Empson) Newsgroups: comp.sys.apple2 Subject: Re: BASIC problem Message-ID: <1991Jun25.133926.25583@actrix.gen.nz> Date: 25 Jun 91 13:39:26 GMT References: <1991Jun25.054815.8451@clark.edu> Sender: David.Empson@bbs.actrix.gen.nz Organization: Actrix Information Exchange, Wellington, New Zealand Lines: 24 Comment-To: apollo@pro-hindugods.cts.com Applesoft's VAL is a function, not a command. As such, you have to use it in an expression. Applesoft will lock up if you try to use some functions by themselves on the line. What do you actually want to do with the value of the string? Two examples would be: (a) store the value of the string into a variable, as in: I = VAL(A$) (b) print the value of the string, as in: PRINT VAL(A$) The latter is slightly pointless, since you could just print the string. -- David.Empson@bbs.actrix.gen.nz