Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class based forms and Default DS
Message
From
17/01/2007 15:24:40
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01186390
Message ID:
01186417
Views:
25
This message has been marked as a message which has helped to the initial question of the thread.
Naomi

>>I knew there is something more :-))))))))
>>Grids doesn't like when you switch data sessions. But I think SET DATASESSION is much faster than CURSORTOXML/XMLTOCURSOR. You just must redefine your grid, if you pass DATASESSIONID as parameter and not use _screen.ActtiveForm.
>
>Right, Borislav, I used the Load idea and the cursor is now accessible. But now my FormatAndSetCaption method of the grid is giving me "Object name is invalid" error on NewObject command... :(
>
>I actually was lazy again (as always) and thought I would try to format grid initially in run-time, then switch to command window and grab all properties and then use some sort of a builder. But I think designing it in design time in this case would be easier and less time wasting.
>
>Thanks a lot for your help.
>
>On the second thought <g> let me try something like Re: Grid - replacing text boxes with my text boxes... Thread #626348 Message #626508 first.

How about in the child form load set the datasession to the calling form's datasessionid? If the child cursor already exists, the grid will find it.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform