Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where can I create the cursor before grid on form initia
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01154646
Message ID:
01154663
Vues:
17
>>In Load Event of the form.
>
>Thanks, now another problem due to this. The table name from which the cursors are created, is not available in Load() as I am passing them as paramter to the form
>
>Plus the RecordSource of the grids are also not available to be initialized before the grid materliaizes.
>
>Please advise.

O, I see.
Put it in Init event of the form and set Grid properties programaticly:
*** Init event of the form:

CREATE CURSOR NameOfTheCursorHere ......... 
thisform.Grid1.RecordSource = []
WITH thisform.Grid1
     .RecordSource = [NameOfTheCursorHere]
     .Column1.ControlSource = [NameOfTheCursorHere.FieldName]
 ....
ENDWITH
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform