Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using out parameters in FoxPro
Message
De
06/07/2000 14:57:20
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Using out parameters in FoxPro
Divers
Thread ID:
00389043
Message ID:
00389043
Vues:
92
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform