Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can execute a button click method without showing the fo
Message
From
01/10/2019 07:21:24
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01671046
Message ID:
01671281
Views:
65
Hi,

I have a procedure that runs in a button click method. Here is the summary of the involved forms/windows:
1. Window/Form1 - User selects certain time period and click on Execute button
2. In the Form1 Execute button click code instantiates creates another form (Form2). Certain parameters are set in the form Form2. Then the Form2 method Show is called. E.g. Form2.Show()
3. The Form2 has the Process button with the click code that is the main code that has to be executed. In the Activate method of the Form2 the click method of the Process button is called. The code in the Activate method is as follows:
thisform.cmdProcess.click()
The form Form2 is shown during the entire process executed in the cmdProcess button.

I need to run the code in the cmdProcess.click() from another program that will run from the Windows Scheduler - without any user interface.

Can I execute the code without Show() of the Form2? That is, can the code
thisform.cmdProcess.click()
run without the form on which the button reside being shown? That is, without steps 1 and 2 above. Just Step 3 without opening the form?

TIA

You could put the code in a procedure file or stand alone PRG and access it from both locations.
Previous
Reply
Map
View

Click here to load this message in the networking platform