Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Store column settings in a grid
Message
 
 
To
09/05/1999 08:39:42
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00216330
Message ID:
00216560
Views:
31
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform