Veja o comando EXTERNAL, para evitar erros do compilador.
>Pessoal,
>
>Como passar um array por referência a uma função sem dar problema ao compilar?... vejam o exemplo abaixo:
>
>
>Local array laArray[2]
>* ---
>laArray[1] = "Primeiro"
>laArray[2] = "Segundo"
>ReceberArray(@laArray)
>? laArray[1]
>? laArray[1]
>* ---
>Procedure ReceberArray(taArray) as Boolean
> taArray[1] = taArray[1] + " - Alterado"
> taArray[2] = taArray[2] + " - Alterado"
>EndProc
>
>
>Ao tentar compilar o VFP8 emite a seguinte mensagem:
>
>Locate File
>Locate
>Ignore
>Ignore all
>Cancel
>Unable to find Unknown TAARRAY
>
>
>Sei que posso declarar outro array local em ReceberArray, copiar o taArray pro array local, trabalhar com o local, depois copiar pra taArray novamente, mas como posso resolver isso sem declarar novo array?...
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)