Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid dynamicbackcolor problem with form refresh
Message
From
06/04/2007 09:44:47
Charles Richard
Nvo Management Systems
Boisbriand, Quebec, Canada
 
 
To
06/04/2007 09:19:27
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01212933
Message ID:
01212949
Views:
10
I don't understand either, I am not attempting to retrieve the dynamicbackcolor value anywhere. I am letting the grid do what it does. The dynamicbackcolor set in the grid as as you say (RGB(nnn,nnn,nnn) returning integer). This value is what is "leaked" to the return value of the form's refresh().

Charles Richard

>>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
>
>I don't quite follow. Dynamicbackcolor, if retrieved by some method, should be Character data type expression returning Integer.
Charles Richard
NVO Management Systems
crichard@nvo.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform