Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ARRAY() command in Visual Basic
Message
From
12/06/2001 10:31:03
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00518091
Message ID:
00518366
Views:
14
>DIMENSION myParams(4)
>myParams(1) = "0p0"
>myParams(2) = "0p0"
>myParams(3) = "18p0"
>myParams(4) = "18p0"
>Then pass the address of the array to the routine.
>
>
>>I am converting a Visual Basic routine to VFP. I need to send four parameters to an object oriented application. The Visual Basic routine uses the ARRAY() command like this:
>>
>>myParams=ARRAY("0p0","0p0","18p0","18p0")
>>myTFrame.GeometricBounds=myParams
>>
>>When I use the DIMENSION command to create a 1 dimension array, and then populate the array with the values given above, the application chokes. Is there a way in VFP to mimic the ARRAY() command in VB?
>>
>>Thanks in advance...
>>
>>John Dennis

By "passing the address" do you mean passing the array by reference? I tried passing the array by reference and it was unsuccessful. This may be a job for a VB app.

Thanks for your assistance.

John Dennis
Previous
Reply
Map
View

Click here to load this message in the networking platform