Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replacing a form with existing one.
Message
De
21/08/2005 09:50:24
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
20/08/2005 23:26:27
Chandan Chakraborty
Bangiya Gramin Vikash Bank
Raiganj, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Divers
Thread ID:
01042369
Message ID:
01042553
Vues:
19
>Dear Hilmar
>
>It is not clear to me.Any example or hints?
>
>Thanks!
>
>Chandan

If I understand the original question correctly, the first time you choose a menu item you want to run a specific form; later, you want to run another form. Is this correct?

Here is an example with a public variable, to do this:
* In your main program
public FirstTaskDone
FirstTaskDone = .F.
Then, when the user clicks on the menu item:
if FirstTaskDone
  do Form2
else
  do Form1
  FirstTaskDone = .T.
endif
Note that the use of public variables is generally discouraged, but I am not sure what alternatives there are in this case.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform