Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Code for a form from a menu
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00018066
Message ID:
00018070
Vues:
44
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform