Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement