Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieve & store value

Status
Not open for further replies.

CBIN

Programmer
Sep 17, 2003
21
US
Knob, Thanks for helping me with the last question.

I have to store login id(alpha-numeric) and password(numeric) received from client for further operations. Can you help me with this or show me some examples.

I do see that rget, comread can be used. Not sure which one should I use.

Please find my test script. Something wrong with this. It displays LOGIN: in the message box dialog, which should actually display the value of ID.

proc main
string LOGIN

while 1
while ($CARRIER == 0 )
yield
endwhile

transmit "LOGIN:^M "
rget LOGIN 7 300
usermsg LOGIN

endwhile
end proc
 
Knob, fixed it.. don't mind to reply.

Thanks.
 
Yes, successive rgets.

*******************
proc main

string LOGIN
string DocType

while 1
while ($CARRIER == 0 )
yield
endwhile

transmit "LOGIN:^M^J "
waitfor ">" 5
rget LOGIN 7
usermsg LOGIN
pause 2
transmit "DocType:^M^J "
waitfor ">" 5
rget DocType 3
usermsg DocType

endwhile
end proc

****************

Thanks

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top