I can't see the problem!  Here's my logic in the grid's init event:

this.RecordSource = thisform.cMyCursorForThisGrid
FOR EACH cColumn IN this.Columns
   cColumn.controlsource = this.RecordSource + "." + cColumn.Name
lcCmd = [cColumn.DynamicForeColor = IIF(] + this.RecordSource + [.cStatus = 'A',RGB(0,0,255),RGB(0,0,0))]
   &lcCmd
ENDFOR


...and the lcCmd expanded is "cColumn.DynamicForeColor = IIF(curPending.cStatus = 'A',RGB(0,0,255),RGB(0,0,0))"

The parens match, the commas are in the right spots, and I'm stumped. I don't normally do a lot of things with the Dynamic? properties, and this is probably why (because of little buggers like this)!

--

Thanks,
--Michael



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to