Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code for a form from a menu
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00018066
Message ID:
00018070
Views:
40
>I'm using a menu command button to create a record in a form. However, the code will only execute from within the form itself. When place in the command button the form runs but does not completely run all the code from the command button, it seems to stop processing the code when the form runs.
>
>I use thisform.release before all this other code, is that the problem?

Hi Rebecca,

May be I didn't fully understand what you mean by *menu command button*
is it menu choice or command button on the form, but in case of menu choice you can call the code from object on the form this way:

_screen.activeform.myObject.myObjectMethod()

Of course if you use thisform.release in the middle of the method code you will meet weird things.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform