Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array passado por referência
Message
From
26/02/2005 23:04:22
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
26/02/2005 21:58:57
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Miscellaneous
Thread ID:
00990871
Message ID:
00990940
Views:
20
Se ReceberArray estivesse em outro módulo (PRG), acho que o EXTERNAL deveria estar no mesmo arquivo como o procedimento ReceberArray(). Nao acredito que isto é inflexível, mas eu o colocaria DENTRO do procedure: depois do comando PROCEDURE, e antes de usar o array.

>Fernando,
>
>A orientação do Hilmar me proporcionou a solução que ficou assim:
>
>Local array laArray[2]
>External array laArray2
>* ---------------------------------------------
>laArray[1] = "Primeiro"
>laArray[2] = "Segundo"
>ReceberArray(@laArray)
>? laArray[1]
>? laArray[1]
>* ---------------------------------------------
>Procedure ReceberArray(laArray2) as Boolean
>  laArray2(1) = laArray2(1) + " - Alterado"
>  laArray2(2) = laArray2(2) + " - Alterado"
>EndProc
>
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