General information
Category:
Forms & Form designer
In situation like yours I used to call form like /do form.... NAME form_name/. Then form_name can be used everywhere to access form properties methods and controls.
>What would be a good way to escape entry in a form?
>
>I am currently trying toi put code in the Keypress event of a certain field, so that if the user hits the ESCAPE key, that the data entry form will close up (go gray) and will execute the ThisForm.cmdCancel.Click() method.
>
>However, it appears that you can't do this as easily as I had thought. I received an error in which I was told by FoxPro (VFP 7) that you can't use the ThisForm.cmdCancel.Click method.
>
>The specific error was:
>
>"ThisForm can only be used from within a form."
>
>Any ideas?
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