Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid dynamicbackcolor problem with form refresh
Message
From
06/04/2007 09:09:59
Charles Richard
Nvo Management Systems
Boisbriand, Quebec, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Grid dynamicbackcolor problem with form refresh
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01212933
Message ID:
01212933
Views:
69
Hi all

I have a problem with dynamicbackcolor in a grid: When I define one, I get a datatype mismatch in the return value of the baseclass of my form refresh. FYI I normally use the following structure in my methods:

LOCAL llRetval
llRetval = DODEFAULT()
IF llRetval
*My code here
ENDIF
RETURN llRetval

In this instance, the value llRetval receives from DODEFAULT() happens to be the color code in the dynamicbackcolor. If I don't use dynamicbackcolor, all is ok. I find this wierd! I have debugged and the value returned in the parent method is a boolean (.T.) just before control is returned to the child method. Stepping once to return to the child method and the value returned is the number.

So two questions:

1) WHY!!!!!!!!!!!!!!????
2) Do I really need to validate the boolean return value in a form refresh? What is the advantage?

Thanks in advance
Charles Richard
Charles Richard
NVO Management Systems
crichard@nvo.ca
Next
Reply
Map
View

Click here to load this message in the networking platform