Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic grid row coloring ??
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01538395
Message ID:
01538464
Views:
93
This message has been marked as the solution to the initial question of the thread.
I believe you're getting the error because the string literal exceeds the maxium length for a string literal (IIRC it was something like 254 or 255 characters). You make a minor alteration as below (look on third line).
ThisForm.grdServicetypespecs_xcelys.SetAll("DynamicBackColor",;
	"ICASE(servicetypespecs_xcelys.exclude_me = .T., rgb(255,255,128) ,;
		   servicetypespecs_xcelys.include_s1 = .T., RGB(128,255,128) ,"+";
		   servicetypespecs_xcelys.include_s2 = .T., rgb(128,255,255) ,;
		   rgb(255,255,255))","Column")
Of course, you could also "simplify" the resulting string a little as:
ThisForm.grdServicetypespecs_xcelys.SetAll("DynamicBackColor",;
	"ICASE(servicetypespecs_xcelys.exclude_me,"+TRANSFORM(rgb(255,255,128))+",";
	   +"servicetypespecs_xcelys.include_s1,"+TRANSFORM(RGB(128,255,128))+",";
	   +"servicetypespecs_xcelys.include_s2,"+TRANSFORM(rgb(128,255,255))+",";
	   +"servicetypespecs_xcelys.include_s3,"+TRANSFORM(rgb(192,192,192))+",";
	   +"servicetypespecs_xcelys.include_s4,"+TRANSFORM(rgb(255,128,255))+",";
	   +TRANSFORM(rgb(255,255,255))+")","Column")
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform