Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Missing LParameters statement
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00842877
Message ID:
00847693
Views:
21
Ok this wasn't correct so let me rephrase this:

Subclassed visual classes (forms) in vfp6 give you the LParameters statement where some exist in the parent class when you go into a custom method. This works even when source code has been striped out in the parent class.

In VFP7/8 you don't get a parameters statement if the parent class has no source code.

Is there some kind of workaround for this.

I am a fun of VFP8 and have been advising our third party developers to get vfp8 if they can. We shipout our classes in the product which they then subclass and customise for their customers.

Any clues?

>Mathias,
>
>I presume you are adding parameters to a method of a class derived from a VFP base class. In the base class the method does not receive parameters.
>
>In this case, it is true that the added parameters would not be propogated back to the base class method. This would violate all sorts of basic OOP principals.
>
>To solve the problem, add the parameters statement to your foundation class instead of your derived class. This will ensure that the statement is inherited by each custom class derived from your foundation class.
>
>Alternatively, don't use parameters at all.
>
>Use temporary global variables to hold information to be extracted by the called method.
>
>Regards,
Mathias Banda

Time is longer than a rope.
Previous
Reply
Map
View

Click here to load this message in the networking platform