Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamic Color Problems
Message
De
24/07/2006 09:39:04
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01139110
Message ID:
01139141
Vues:
12
>Cetin:
>
>That code work like a charm. But what is causing that my property get erase?

I suspected what is called a "Grid reconstruction". Here is a sample of scenario:
-At design time you build up your grid with a recordsource.
-At runtime you do something with the recordsource. ie: a select into cursor.

That removes all columns and rebuilts from that cursor's fields. All column and controls level settings are gone. To prevent it:

.RecordSource = ""
* do whatever here. ie: select * from customer where ... into cursor crsGridSource
.RecordSource = "crsGridSource"

That'd keep settings during design intact. You can find details about grid reconstruction in FAQ section.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform