Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot return value from custom class
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Cannot return value from custom class
Miscellaneous
Thread ID:
00587315
Message ID:
00587315
Views:
48
I've created a custom class visually that has a method that takes 4 parameters; two are objects and two are variables.

I dropped the class on a form and invoke its method from a command button, passing the four parameters.

The objects come back properly modified by the method, but the variables come back in their initialized state. I've displayed the variables on the last line of code in the method and they do have the correct values there. I also noticed that in the form, the method code box for the object has an LPARAMETER line with my parameters. My first line of code in the object method is a PARAMETER statement. Why is that? How can I get the values of the variables back to the form?

Thanks
Jay
Next
Reply
Map
View

Click here to load this message in the networking platform