Re: Number Input
- Posted by Craig Gilbert <cgilbert at CENNET.MC.PEACHNET.EDU> Jul 28, 1997
- 825 views
Bryan wrote: > . . .how do I let the player enter numbers (such as a bet), >and have the variable equal the number entered and not the ASCII number? > . . .<skipped> . . . They enter "15", but the sequence >variable is set to {49,53} . . . Bryan, I think the value() function would get the result you need. You will have to include get.e to use it, but it should return the number 15 from the string "15", etc. You may want to check the library.doc file on this function, as I believe it actually returns a sequence with the first(second?)element being a status indicator. Craig