Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Add a Cursor to DataEnvironment programatically?
Message
From
06/02/2004 02:22:27
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00874222
Message ID:
00874719
Views:
21
Hi Esparta

Since cursors are not real files, and may not always be available, I doubt it is possible. And why do you want to have the cursor in the DE at all? I see absolutely no advantages.

>Thanks Viv, but that's correct at runtime, I'd like to do it at design time.
>Any others ideas?
>
>>Hi,
>
>>>>
>>I'd like to Add a cursor to a DataEnvironment's form, without hacking the SCX table, is it possible?
>>I'm creating a Form, adding controls, writing methods, but i need to add cursor to the dataEnvironment...
>>>>
>
>>I guess you mean 'to a form's Dataenvironment..'. Somewhere before the DE.OpenTables fires (DE.BeforeOpenTables() itself may be as good as anywhere):
>
>>ThisForm.DataEnvironment.AddObject("MyCursor","Cursor")
>
>>Then set the cursor objects properties as required. e.g.
>
>>ThisForm.DataEnvironment.MyCursor.BufferModeOverride=5
>
>>etc.
>
>>Hope this helps,
>>Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform