Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing field name in dynamicbackcolor
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00364954
Message ID:
00365444
Vues:
15
Your right, his use of string delimiters is easier to look at.

Glad it worked for you.

Rick

>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform