Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I make to pass two arrays to a function?
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00941721
Message ID:
00941773
Views:
8
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform