Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where can I create the cursor before grid on form initia
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01154646
Message ID:
01154663
Views:
16
>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform