Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using out parameters in FoxPro
Message
From
06/07/2000 14:57:20
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Using out parameters in FoxPro
Miscellaneous
Thread ID:
00389043
Message ID:
00389043
Views:
93
Hello,

I am using a 3rd party activex control in foxpro 6. The problem I am encountering is the following. I have a method that has 2 parameters, one being an out parameter.

In VB, the code would like this:

Dim ResultCode As Integer
Dim sSource As String
Dim vaDestination As Variant

sSource = "This is the string to compress"
ResultCode = xMem.Compress(sSource,vaDestination,True)

The vaDestination now contains the compressed string that was contained in the sSource variable.

Here is the code I am trying to use in FoxPro:

Private Resultcode
Private sSource
Private vaDestination

sSource = "This is the string to compress"
vaDestination = ""
ResultCode = THISFORM.xMem.Compress(sSource,vaDestination,.T.)

The vaDestination variable is not modified to contain the compressed string. I have also tried setting the vaDestination variable to an integer and to Space(). If i view the vaDestination variable after the Compress method has been called, it retains the value to which I originally initialized it.

vaDestination is an "out parameter".

Can anyone help me out? I am not a FoxPro developer and I need to get this resolved.

Thanks you for your time!

Jenny
Next
Reply
Map
View

Click here to load this message in the networking platform