Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running form within form
Message
 
To
22/06/2023 15:56:36
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
01686768
Message ID:
01686769
Views:
78
>I have two separate forms, one is invoice, one is ledger
>
>My client wants to join those forms into one, when he finishes entering the invoice, will auto-run the ledger form.
>
>On the invoice form, I added a command button, when click, it will run the ledger form, which works.
>
>But my client doesn't want to click the button.
>
>so on the invoice.save, I added:
>do form ledger
>
>When I save the invoice, it will keep running the ledger form over and over.
>How can I make it only runs once?
>
>Thanks for the help
>
>Jerry Yang

Add a property in the Invoice form (i.e. runnedForm) with a default value NULL
and then in Save:
IF ISNULL(thisform.runnedForm)
    do form ledger NAME  thisform.runnedForm
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform