Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form dataenvironment and cursorsetprop
Message
 
À
17/06/1998 11:28:41
Dave Emerson
Dc Emerson Consult8Ng, Inc
Destin, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00109094
Message ID:
00109182
Vues:
20
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform