Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataEnv holds Set Date, Set Cent
Message
De
14/06/1997 17:04:58
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
DataEnv holds Set Date, Set Cent
Divers
Thread ID:
00036395
Message ID:
00036395
Vues:
67
Last few days I'm trying to make filer.scx work as expected (by an fox addict), and I'm glad to report I'm making progress (without filer.dll). Along the way I've stumbled upon a... well, M$ would say "the behaviour is by design", and I'd have a few words about the *$%&(**@# design. If a form has its own datasession, then the datasession keeps the Set Date, Set Century, Set Hours and maybe some other settings I've not stumbled upon yet. If the datasession is set to 1, it all works like a charm; if it's two, I get american date, 12 hour clock and century off - nice defaults for some, and a nuisance for others. I've found no way to clear these settings out, or to edit them - I just made a workaround: * Well this is an incredible bug, or at least an undocumented feature * (whatever) - as soon as datasession goes 2, the date gets set * to American (probably due to some bytes in .pjx file header) * and switches so as soon as form is instantiated. So I had to * write this kludge: set datasess to 1 cRealSetDate=set("date") nHours=set("hours") cCent=set("cent") set datasess to 2 set date (cRealSetDate) set hours to nHours if cCent="ON" set cent on endif Is there any decent way to avoid this? I'd prefer if the data environment would respect the defaults of the system where it's installed to and not where it was created first.

back to same old

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

Click here to load this message in the networking platform