Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SETFOCUS = change select area?????
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00153076
Message ID:
00153101
Views:
17
Larry,

Are you sure there's no code in the object you're setting the focus to or the object you're setting the focus from that might change the work area? Try suspending before the SetFocus() and setting a breakpoint on ALIAS(). This should show you where it's being changed.

>I've tried unsuccessfully to duplicate this with a smaller piece of code so I'll just ask...
>
>The following code shows two different aliases. One before the SETFOCUS and a different one after the SETFOCUS
>
>************************************
>wait window '1 ' + alias()
>THISFORM.txtAAPVMOD_MODNAME.SETFOCUS
>wait window '2 ' + alias()
>************************************
>
>the text box is a simple subclass of my extremely complicated base text box class. Here's what the base class looks like:
>
>**************************************************
>* Name ....... : BsTextBox
>* Purpose .... : Base Text Box
>*-------------------------------------------------
>DEFINE CLASS BsTextBox AS TEXTBOX
>ENDDEFINE
>
>So... I'm a little confused. How could setting focus change the current select area???
>
>TIA
Previous
Reply
Map
View

Click here to load this message in the networking platform