Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
From VB to VFP
Message
De
14/12/2001 20:02:41
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
From VB to VFP
Divers
Thread ID:
00594726
Message ID:
00594726
Vues:
55
I have the following in VB:
Dim oEClient As Object
Dim bstrResponseCode
Set oEClient = CreateObject("MyObject")
oEClient.GetResponseCode bstrResponseCode
display.Text = display.Text + "Response Code: " + bstrResponseCode + Chr(13) + Chr(10)
The problem I have in Visual FoxPro, is that the GetReponseCode() method is not able to store the value in my variable. The definition should be a variant.

Here is the code I am using:
LOCAL loEClient
LOCAL lcResponseCode
loEClient=CREATEOBJECT('MyObject')
loEClient.GetResponseCode(lcResponseCode)
? 'Response Code: ' + lcResponseCode
The program works but always skipped over assignating the value to lcResponseCode. So, whatever lcResponseCode is before calling the method, it'll remain as is after.

Is there a way to convert that so it'll work?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform