Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Knowing which of 2 grids has the focus?
Message
 
 
To
05/11/2001 12:11:05
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00577418
Message ID:
00577444
Views:
18
This message has been marked as the solution to the initial question of the thread.
>>I didn't notice, you don't use buttons. How do you process F3, in Form's KeyPress? This technique is still valid, but you probably don't need an additional form's property. Just check thisform.ActiveControl in KeyPress method of the form.
>
>Hi Nadya,
>
>ActiveControl sound like it should work.
>
>The help says: Object.ActiveControl.Property[ = Value]
>
>I need: FormControl = THISFORM.ActiveControl
>
>If FormControl == ???
> Do ABC
>ELSE
> DO XYZ
>ENDIF
>
>Mike
if vartype(thisform.ActiveControl) = 'O'
   loControl = thisform.ActiveControl
   if loControl = thisform.grd1
       ABC
   else
       DEF
   endif
endif
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform