Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving focus between editboxes
Message
From
16/02/2009 14:43:47
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01382139
Message ID:
01382171
Views:
45
>Why are you using an editbox not a textbox? With a textbox you can program the scanner to send CHR(13) at the end of scanned barcode and it will move cursor to the next textbox w/o extra code.
>
>>
>>I'm attempting to use a barcode scanner to fill an editbox. Once filled I would like to shift the focus to another editbox for a second scan. I'm attempting to do this without the operator having to push any keys. The change of focus needs to be delayed for the edit1 to populate completely.
>>
>>I believe the code would be placed in the interactive change (edit1) and look something like this
>>
>> if thisform.edit1.value > "1000"
>>
>> thisform.edit2.focus? =.t.
>>
>> endif
>>
>>Thank you for your help!


Thanks Sergey, how simple, I missed that completely.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform