Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP problems with an out-of-process exe?
Message
 
 
To
17/10/2007 16:29:11
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01261630
Message ID:
01261786
Views:
8
>I'm using a third-party out of process server. I highly doubt it was written in VFP, if that matters.
>
>For the most part, I can easily access the methods and properties of the exe. However, I'm stumped when I attempt to set one particular property. The documentation states that I should pass three variables: two integers, and then an integer variable by reference. Not only do I pass these, but the property is boolean, so I specify .T. or .F.
>
>All of this works fine in VB.
>
>
>ASI916.TColumnOn(1, 1, AsiRESULT) = True
>
>
>After issuing that command, the TColumnOn property is set to true. However, when I attempt to do the same in FoxPro, I have issues.
>
>If I try this, I get a syntax error:
>
>AsiResults = 0
>ASI916.TColumnOn(1,1,@AsiResults) = .T.
>
>
>
>If I try this, I get an "Invalid Subscript Reference":
>
>AsiResults = 0
>ASI916.TColumnOn(1,1,AsiResults) = .T.
>
>
>Do FoxPro have an issue with passing variables by reference to an out of process server?

VFP has problem with setting such properties. IIRC, it only works when all parameters are plain numeric values or there's only one parameter.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform