Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Store column settings in a grid
Message
De
09/05/1999 08:39:42
 
 
À
09/05/1999 07:16:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00216330
Message ID:
00216523
Vues:
40
John,

I solved the problem using the following syntax

SELECT User

LOCATE FOR User.FormName = ThisForm.Name
DO WHILE FOUND( )
lcColOrder = "This." + ALLTRIM(User.Name) + ".ColumnOrder"
&lcColOrder = User.ColumnOrder
lcColOrder = "This." + ALLTRIM(User.Name) + ".Width"
&lcColOrder = User.Width
CONTINUE
ENDDO

Thanks

>Hi John,
>
>I have managed to save the .Width, .Name, .ColumnOrder of the columns in the grid to a table. I can't however figure out how to reference the columns using the column name stored in the table to reset the .ColumnOrder.
>
>After I find the record in the table for that grid how do I use the User.ColumnName that is stored in the table in the "This." statement?
>
>This."User.ColumnName".ColumnOrder = User.ColumnOrder
>
>Each attempt results in an syntax error...
>
>Thanks
>
>>And/or Release. Not Destroy, though, IMHO.
>>
>>>
>>>Would the Destroy event be the same as the QueryUnload? I see that the QueryUnload is not called if you invoke the forms Release method, could this be a potential problem?
>>>
>>>Thanks
>>>
>>>>Hi John ---
>>>>
>>>>There's no easy answer to this. You could store these properties to a table on QueryUnload and restore them at Form Init. Or substitute the table for registry settings or INI settings.
>>>>
>>>>
>>>>>How can I store the ColumnOrder and Width when the user modifies a grid?
>>>>>
>>>>>Thanks
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform