Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VB6 Code in VFP6
Message
De
10/10/2001 14:10:11
 
 
À
10/10/2001 13:50:09
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00566534
Message ID:
00566565
Vues:
10
This message has been marked as the solution to the initial question of the thread.
>Hi
>
>I have a sample code in VB6 that I have to convert in VFP6, I am now starting to use com objects and I have no experience
>The code use stats.dll (com dll)
>
>The VB6 code is
>
>Set odat=CreateObject("stats.head")
>Set orow=CreateObject("stats.data")
>odat.GetInfo orow
>
>I convert in
>
>odat=CreateObject("stats.head")
>orow=CreateObject("stats.data")
>odat.GetInfo(orow)
>
>The code must return a new line from a file every time that is called the function GetInfo.
>The problems is that the code in VB6 works in VFP6 do not. Can be the problem in how I call GetInfo
>
>Thank you in advance.
>
>Luigi

So orow is some sort of recordset object that is modified in GetInfo()? You probably need to pass orow by reference, but I am uncertain if this will work or not, depending on the type of the variable and the processing inside of the function. Try this:
odat.GetInfo(@orow)
Although to me it seems like the GetInfo() function should be returning the results and not requiring the caller to pass a variable by reference.
HTH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform