Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can execute a button click method without showing the fo
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01671046
Message ID:
01671052
Vues:
67
Yes, I can. It is just that the code (the forms and the procedures) I described in the initial message have been working for a long time. So, I wanted to see if I can reuse it without changing.
Getting back to your suggestion. Are you saying that the code in a method can be run from the Activate method without actually Showing the form?

>Hi Dmitry,
>
>Can you create form's method and use that method in the form's Activate and directly as well (and the button will call thisform.myMethod()) ?
>
>>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
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform