General information
Category:
ActiveX controls in VFP
Title:
Using out parameters in FoxPro
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only