Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
.NET and VFP LParameters
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00754321
Message ID:
00754325
Views:
17
Steve,

It's documented in DEFINE CLASS Command help since VFP7.
"For the parameters and their types to appear in the type library, you must use the inline parameter syntax instead of using LPARAMETERS to declare the parameters: ex. FUNCTION Publisher_ShowPrice(Bookid As Integer, Bookprice As String)".

>In case anyone is interested, it looks like you cannot have a VFP COM object with a method signature like this:
>
>Function EventLogMsg as Void
>LParameters messageParm as String , waitState as Integer
>
>
>Because when you add the COM object reference to your Visual Studio .NET project, the IDE interprets the above as method EventLogMsg with no parameters at all.
>
>
>it must be like this:
>
>Function EventLogMsg ( messageParm as String , waitState as Integer )
>
>
>
>
>Running VFP 8.0.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform