Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Objects, Arrays & parameters
Message
De
23/06/2002 18:57:58
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00671447
Message ID:
00671507
Vues:
18
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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform