Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to do away with the DE?
Message
De
03/12/2000 21:49:12
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00448659
Message ID:
00448665
Vues:
14
>I'd like to ditch the DE and set up my environment in code. It's a simple task and I've also used udDE for verification that I did it right. Where
>can I put the code though? I have an application object that has a method "CreateDE" that I put the code. Here's a look at the DE code...
>
>use config in 0 shared
>=CURSORSETPROP("Buffering", 3)
>

Aside from what Larry told you, just from these two lines - are you sure that config is exactly the table which is getting buffering set? You'd better

select 0
use config shared
=CURSORSETPROP("Buffering", 3)

...just in case, so that you'd know that it's really your table that the CursorSetProp is operating with.

A better location to call such code from would be, IMO, each individual form's .Load method, so you could have different settings for each of your forms - so you could open your tables read only or under a different alias etc, as needed. If you do that at the oApp level, it's all the same throughout your app, and any order change, filter or whatever you introduce in one form, will affect any other form open at the same time. They didn't invent private data sessions without a reason.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform