Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which comes first
Message
 
À
26/01/2004 16:20:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00870624
Message ID:
00870800
Vues:
9
Interesting!

>Hi Tom,
>
>I sometimes do this. If I setup the table in the init then it goes before the dodefault(). Then after the dodefault() I assign the value to the form property. Of course that typically requires a refresh following...
>
>
>>Perhaps I did not understand your reply. I thought that placing the open table code should go in the form Load. The data source of the control must exist before the form Init fires or an error will be produced.
>>
>>>Load comes first, but the form control's don't yet exist. Controls are INITed from inner most to outer most, meaning the controls are INITed before the form. You'll want to set the control source of the textbox in the Form.Init. I would open the table in the Form.Init and read the value from there.
>>>
>>>
>>>>Which comes first on a form Init or Load?
>>>>
>>>>I want to open a table, store a value to a memvar and use trhat memvar as teh control source for a text box.
>>>>
>>>>When should I do that?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform