Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing field name in dynamicbackcolor
Message
 
 
To
01/05/2000 21:35:43
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00364954
Message ID:
00364961
Views:
15
Try this: one thing was you had unbalanced parens: only a right paren. You might need to ALLTRIM the controlsource.

for each oColumn in this.Columns
oColumn.DynamicBackColor=;
[thisform.mySetColor("]+oColumn.ControlSource+[")]
endfor

Another approach might be to pass the column number and have mySetColor look up the field from Grid.Columns(tnPassedColumnNumber)

>Hi all-
>
>I would like to set the DynamicBackColor property based on the name, not contents of a field. This passes the field contents (not the field name):
>(thanks to Cetin Basocz)
>
>for each oColumn in this.Columns
> oColumn.DynamicBackColor=;
> "thisform.mySetColor"+oColumn.ControlSource+")"
>endfor
>
>I have tried lots of combinations of quotes etc to attempt to pass the controlsource's field name to thisform.mySetColor, with no success. Any ideas?
>
>Carlie
Rick Hodder
MCP Visual Foxpro
C#, VB.NET Developer
Independent Consultant
www.RickHodder.com
MyBlog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform