Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DynamicBackColor not working
Message
From
28/10/2008 13:18:38
 
 
To
28/10/2008 12:45:50
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01357721
Message ID:
01357750
Views:
24
Jay -

I just sent some code that does what you are doing that i wrote last Friday. Take a look at your email and see if that works for you.

Carsten

>I think there is something else wrong. When I use the debugger and browse the cursor, not matter where I try to move the record pointer, it jumps to the bottom of the cursor. There is no index associated with this. What could cause that behavior?
>
>>>The records do not change color in the grid, though the cursor does have those values in the GroupHeading field.
>>>
>>>	.Fm_CONTAINER1.grdWorkListXMLCursor.RecordSource = ''
>>>	.Fm_CONTAINER1.grdWorkListXMLCursor.RecordSource = 'WorkListXMLCursor'
>>>	THISFORM.Fm_Container1.grdWorkListXMLCursor.SetAll("DynamicBackColor", ;
>>>		"IIF(ALLTRIM(WorkListXMLCursor.GroupHeading)='Receiver', RGB(192, 241, 190), ;
>>>		IIF(ALLTRIM(WorkListXMLCursor.GroupHeading)='Subscriber' OR ;
>>>			ALLTRIM(WorkListXMLCursor.GroupHeading)='Dependent', RGB(211, 210, 240), ;
>>>		RGB(249, 223, 223)))", "Column")
>>>	.Fm_CONTAINER1.grdWorkListXMLCursor.Refresh
>>>
>>
>>How about:
>>
>>TEXT TO lcDynBackColor NOSHOW PRETEXT 15
>>     ICASE(UPPER(ALLTRIM(WorkListXMLCursor.GroupHeading)) == [RECEIVER]                     ,  RGB(192, 241, 190),
>>           INLIST(UPPER(ALLTRIM(WorkListXMLCursor.GroupHeading)), [SUBSCRIBER], [DEPENDENT]),  RGB(211, 210, 240),
>>           RGB(249, 223, 223))
>>ENDTEXT
>>THISFORM.Fm_Container1.grdWorkListXMLCursor.SetAll([DynamicBackColor], lcDynBackColor, [Column])
>>THISFORM.Fm_Container1.grdWorkListXMLCursor.Refresh()
>>
Carsten M. Thode
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform