Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Working with Data Environments
Message
De
17/01/1997 14:52:01
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00017515
Message ID:
00017721
Vues:
85
>> Not exactly. I used to have List.RowSource=(None) and reset this property
>> to cursor alias in Form.Init after the cursor has been created in the same
>> snippet.
>
>OIC. But I is it not easier to use the Load? This way you can bind
>everything at design time and you do not have to bother with it at run
>time. List does not belong to my standard objects at this stage so I
>might be missing something, but for txtboxes and grids, I defenitely
>would go for the Load.
>
>Or it might just be a question of taste after all.
>
>Marc

The case is that I have temporary cursor used as RowSource for a List. This cursor supposed to be built from some tables of Dataenvironment. Therefore the first step is to load Form and Dataenvironment and just after this in Form or List Init event I can build cursor and bind it to list. Sometimes I create cursor in parent form and use it as a source for List in Child form, and then I could use Load event.
Personally, I prefer to put all code into Form.Init. It's nicer to have everything related to form start in one place.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform