Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Screen Resolution conflict
Message
De
03/01/2005 12:54:18
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
03/01/2005 12:45:37
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:
00973613
Message ID:
00973881
Vues:
26
>My dear Professor,
>
>I refer to your following sentence
>
>"I told you to put this code in the form class's Init()."
>
>Is this form's Init method or any other thing.
>
>Please help

The form has a built-in method "Init", also called the Init() Event. Any code you put into the Init() Event will run automatically when the form opens.

You can access the Init() Event like this:
  • Open the desired form.
  • Give the command "View | Code".
  • Under "Object", make sure the form is selected. This is the object at the top of the hierarchy.
  • Under "Procedure", select "Init".
  • In the code window, write any code which you want to execte as soon as the form starts.

    Instead of the second and third step, you can also double-click on the form background, but be careful not to click on any contained object.
    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
    Suivant
    Répondre
    Fil
    Voir

    Click here to load this message in the networking platform