General information
Title:
Method call returns the wrong value
I have an interesting ( read: highly annoying) problem. I have an array of form controls that have a method named GetDisplayValue that takes an integer parameter and returns a string value. I add an object at runtime to the controls that has this method and has a BINDEVENT call to bind the method call. When I step through the method, everything works like a champ, yet after the call, cValue = the passed value, even if the method is hardcoded to return a string. The BINDEVENTS seems to be working since program flow calls the method and the return value is set. I just don’t seem to be able to “catch” the return value.
*-- Sample call
LOCAL cValue
cVAlue = ''
cValue = aObjArray[1].GetDisplayValue(nSomeKeyNumber)
? cValue && nSomeKeyNumber instead of the true return value
I even re-did the object's method to do this:
PROCEDURE GetDisplayValue
LPARAMETER tnKey
RETURN 'ABCDEF'
ENDPROC
I still get the passed value back instead of the ‘ABCFEF’! I hope I'm missing something obvious here. Any hints? Thanks.
Gary
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only