Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Preserving grid properties
Message
De
20/03/2004 18:23:19
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Preserving grid properties
Divers
Thread ID:
00888244
Message ID:
00888244
Vues:
47
Usually, I define a grid based on an alias which I can see at design and run time. However, I have a form where I am designing a grid but that grid will be bound on a cursor that I am defining in the Init() of the form. So, I have something like this:
MESSAGEBOX(ThisForm.ControlFile.Columns(1).ControlSource)
MESSAGEBOX(ThisForm.ControlFile.Columns(2).ControlSource)
which gives the proper field names. Then, I assign the grid to the cursor which I just created in the Init() of the form:
ThisForm.ControlFile.RecordSource='Control'
MESSAGEBOX(ThisForm.ControlFile.Columns(1).ControlSource)
MESSAGEBOX(ThisForm.ControlFile.Columns(2).ControlSource)
Both ControlSource are now empty. Anyone can tell me the trick to preserve the grid properties?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform