Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I make to pass two arrays to a function?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00941721
Message ID:
00941773
Vues:
7
Francisco,

Are you sure you need to send two arrays to the function? The first one containing 19 empty strings and the second one containing 100 empty strings? Or do you need to pass one string of 19 characters and one string of 100 characters to the function?

If it is the second case:
local wserie AS String
wserie = space(19)

local wIDRegistro AS string
wIDRegistro = space(100)

DECLARE INTEGER VFGenerateId IN VFinger.dll String, String
wres=VFGenerateId(wserie,wIDRegistro)
>How can I make to pass two arrays to a function? In the example of below; I have two defined arrays as string and the function waits two arrays pointers to first element
>
>DIMENSION wserie (19) AS String
>STORE " " TO wserie
>
>DIMENSION wIDRegistro (100) AS string
>STORE " " TO wIDRegistro
>
>DECLARE INTEGER VFGenerateId IN VFinger.dll String, String
>
>This, produce error
>wres=VFGenerateId()
>
>This too
>wres=VFGenerateId(wserie,wIDRegistro)
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform