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

Try code like this to get rid of the macros:
loColumn = eval( "this." + alltrim( user.name ) )
with loColumn
   .ColumnOrder = user.ColumnOrder
   .Width = user.Width
endwith
>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
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform