1. Number Input--oops

>>>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} . . .

>>Craig wrote: <bad advice skipped >

>Ad Rienks wrote:
>Bryan,
>
>Maybe you can use the input function, written by 'unknown coder'
>(actually a corporate attempt of some coders). This function can
>also be found on the ftp site of Irv Mullins (that's his name, I think)
>
> <code skipped>
>--Using the function get(0) in this routine you don't need value() . . .

     Ad Rienks is absolutely right.  Using get(0) is much more
straightforward than first getting a string and then converting it with
value(), whether you use the 'unknown coder' input() or not.
     Sorry about the bum steer . . .

Craig

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu