Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Objects, Arrays & parameters
Message
From
23/06/2002 18:57:58
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
22/06/2002 23:36:11
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00671447
Message ID:
00671507
Views:
20
This message has been marked as the solution to the initial question of the thread.
>Hi
>
>I have an array of objects each of which has two arrays as members. I want to be able to pass the member arrays to a function for processing.
>
>The problem is that my function does not receive the array, instead it receives only the first parameter.
>
>
>IF FilesExist(.aImportFiles, cImportPath) AND ;
>   FilesExist(.aInternalFiles, cDataPath)
>	
>      CleanFiles(.aInternalFiles, cDataPath, cOutPath)
>ENDIF
>
>
>
>How do I pass the entire array (or preferably a reference to it) to my function???
>
>
>Regards
>Geoff Scott

For quick processing (to avoid copying the property array to an "array proper", you can also pass the object itself as a property. However, the called function must know the name of the particular array property.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform