Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array property as a referenced parameter to a function
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00047926
Message ID:
00047980
Views:
44
>>Yes, but in the initial message Jorge ask for a way to reference an
>>array without copy it...
>
>That's exactly what one of the techniques does, and it's faster than macro substitution. Note:
>
>>>2. Use the EVAL() function to access the Nth element of oMyObject.aMyArray by saying:
>>>cThisElement=cMyArrayRef + "(N)"
>>>Now you can change the value of N as often as you like and resolve the value of the Nth element by simply asking for Eval(cThisElement)
>
>:)
Thanks you guys (Gérald & Mark) for your advise, I'm migrating my applications to VFP 5.0, I guess I have to rewrite my old array functions so now they can handle array properties.

Have any of you tested what could be faster, either copy the array to a temp array or do the macro substitution as Gérald proposes?
Jorge Flores
From the Amigo Country
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform