Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code not stopping at combo box...
Message
From
31/07/1999 11:48:29
 
 
To
30/07/1999 20:43:58
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00248469
Message ID:
00248536
Views:
15
>very simple code
>
> THISFORM.REFRESH
> THISFORM.OPLIST.SETFOCUS()
> THISFORM.OPERATOR=THISFORM.OPLIST.VALUE
>
>but it doesn't stop at the OPLIST combobox to give the user a chance to pick a value
>
>the debugger shows it going to the gotfocus but it doesn't appear to do the default (which would cause it to popdown)
>nor does it do the valid (which would return .f. if the value is empty which it would be if nothing is selected because I've initialised the value to empty to try to resolve this problem)
>
>it just goes oplist.setfocus, gotfocus and straight onto the next line of code...
>
>all clues gratefully received.
>
>Harry

Setfocus is not a modal operation... if you set focus to a control, and put another line of code after the setfocus line, there is nothing from stopping processing from continuing- it won't wait for the user's input.

I am a little unclear on what oyu are trying to do, but if you are trying to get a combo to drop down when it receives focus, you can use a

KEYBOARD '{ALT+DNARROW}' after you set focus.
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform