Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DynamicBackColor length limitations and complex conditions
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
DynamicBackColor length limitations and complex conditions
Miscellaneous
Thread ID:
01419452
Message ID:
01419452
Views:
134
Hi all

In my grid class I have a ProcessColumn() method to go through each column and set it's DynamicBackColor. I have managed to reach 190 characters:
	.DYNAMICBACKCOLOR = "IIF((NOT EMPTY(RECNO('" + THIS.RECORDSOURCE + "'))) AND (THIS." ;
		+ .NAME + ".ENABLED AND (NOT THIS." + .NAME ;
		+ ".READONLY)), goApp.nBackColorFld, " ;
		+ "IIF(goApp.nOSVersion < 5.01, goApp.nBackColorForm, THIS.BACKCOLOR))"
Now I need to add one more condition for columns that contain a class which range checks numeric values entered by the user and need a different color if the range check fails.

Is this the only way to keep piling in IIF() for this or can I do something better?

Thanks and regards.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Next
Reply
Map
View

Click here to load this message in the networking platform