Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/18/05 03:34
Read: times


 
#97533 - any experience w. Input stat. in Bascom
Hi ,
Has anyone here used the Input statement in Bascom-8051 ?
It seems that i can't make the Timeout option to work ! :(
The Help says :
INPUT [" prompt" ] , var [ , varn ] [ NOECHO ] [ TIMEOUT = xx]

Remarks

Prompt An optional string constant printed before the prompt character.
Var,varn A variable to accept the input value or a string.
NOECHO Disables input echoed back to the Comport.
TIMEOUT Optional delay time. When you specify the delay time, the routine will return when no input data is available after the specified time. No timer is used but a long is used to count down.


Here is the code that i'm using :

Cls
Print "Hi ;)"
Upperline : Lcd "WAITING FOR HOST TO BOOT..."
While Scmd <> "ACK"
Print "A"
Input Scmd Noecho Timeout=1000
Print "timedout"
Wend

Existance of the timeout option doesn't make any difference , it just stops and waits forever until an Enter is pressed.i think this is not the way that timeout should be working ?

Didn't got any respone in Bascom forum :(

Best Regards :
Farshid J.H.

List of 3 messages in thread
TopicAuthorDate
any experience w. Input stat. in Bascom            01/01/70 00:00      
   Are y ou sure?            01/01/70 00:00      
      No , again an undocumented statement            01/01/70 00:00      

Back to Subject List