>Does anyone have any idea, how to determine which control got focus ?
There's no FOCUS(), and I can't think of anthing else.
Please help.
>TIA
if your application is straight forward - the activecontrol is easy to use. if it is not so straightforward (pageframes with grids on them), referencing the active control becomes complex (i am a new vfp programmer and i cound not get the syntax right for all possible combinations of controls that could have focus). i have just started putting "this.parent.olastcontrol = this" in all my readonly = .f. controls gotfocus event. this creates an object reference to the control, and then later you can "this.name", or "this.valid()", or whatever. i have found many uses for having the current controls object reference handy in a custom property. if you want to use olastcontrol - set it to .NULL. in the pem. and in the destroy event of the form.
brenda
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only