Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class vs DLL
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00944057
Message ID:
00944059
Views:
23
Steve,

The "PARAMETERS" statement belongs to a method not to a class.
DEFINE CLASS ...
FUNCTION GetPrice
PARAMETER MyPrice
...
RETURN ...
>I have a class called Format_Prices with a parameter statements up at top like this
>parameters MyPrice
>.... the program
>return MyPrice
>
>? myClass.FormatPrice("12.98749")
>
>When I use this class to format prices within a vfp it works great. However, if I
>build this class into a VFP DLL, I run into the following problem:
>The line with the "parameters MyPrice" returns an error Code 16 error in this line.
>If I remove the parameter statement, then build the DLL, it works.
>
>Do I need the "parameters myPrice" statement or don't I? Why would
>
>Thanks Steve
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform