Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VB DLL Call to VFP...
Message
 
 
À
12/07/2000 06:56:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00391123
Message ID:
00391140
Vues:
15
>Hi!
>
>I have this code in VB...To call GetOldFile.dll
>
>Dim getold As GetOldFile.clsGetOldestFile
>getold.GetOldestFileName PATH, *.*, RETURNFILENAME, RETURNDATE
>
>How can I call this code in VFP?

GetOld = createobject("GetOldFile.clsGetOldestFile")
lcoldestfile = space(1)
ldoldestdate = {}
GetOld.GetOldestFileName(PATH, "*.*", @lcoldestfile, @ldoldestdate)

The @ designates that those variables should be passed by reference. When the function populates them within itself, the actual variables will be changed.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform