Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form dataenvironment and cursorsetprop
Message
 
To
17/06/1998 11:28:41
Dave Emerson
Dc Emerson Consult8Ng, Inc
Destin, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00109094
Message ID:
00109182
Views:
21
Hi Dave,

>I have a form in which I use the load event to open tables and set orders and relations. The form also uses the dataenvironment with autoopen/closetables properties set to .F. In the load event I also use cursorsetprop to set buffering.

>Doesn't cursorsetprop change the dataenvironment cursor properties?
>

The CURSORSETPROP does change the properties and I am sure it works in your case as well. The problem which comes here is different. The sequence of operations would be something like this...
Form.Load()
  DataEnvironment.Curor1.Init()
  DataEnvironment.Curor2.Init()
  DataEnvironment.DataEnvironment.Init()
This means that the DE is actually loaded after the Form.Load() is complete, hence the settings which you made are being overwritten by the DE default settings. Place the Code in the DataEnvironment.Init() and things should be fine.
Previous
Reply
Map
View

Click here to load this message in the networking platform