Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
.NET and VFP LParameters
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00754321
Message ID:
00754325
Vues:
12
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform