Dennis Bartlett wrote:
<snip>
One way to beat this, and still allow you to use a single space as an exit
character, would be to create a loop that inputs a single character, then
tests if that character is a space. If so, exit the loop, if not, append
that character to the end of a string, eg

InputtedValue = ''
Loop
   Input Val,1:
   if Val=' ' then exit
   InputtedValue := Val
Repeat
<snip>

This is correct, as is the rest of Dennis' post; but I'll add one caveat. When I've written this sort of loop, it's often been necessary to add a sleep or delay in the loop. Otherwise when this process is executing the computer can use the user's entire timeslice looping, 'cause there's always something for the computer to do. Which will tend to bog the machine down for the other users, (much as a very intensive SELECT will do).

Obviously this can also be dependent upon userload, hardware, operating system and Pick/U2 variant - some combinations work better than others.

--
Allen Egerton
aegerton at pobox dot com
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to