I am using a method that gets an array passed as a parameter. When I
run it in development mode it runs fine. When I try to build it though,
FoxPro gives an error saying Unknown myArray - Undefined. What do I have to
do to make it so that it doesn't give this error. I have the array as the
parameter to the method and I am passing the array by using the @.


this is basically what I am doing


Select *;
FROM sometable;
into array testarray
if _tally > 0
myProc(@testarray)
ENDIF


Procedure MyProc
parameters myArray
**do some stuff here with the array
Endproc


--
Altman
VFP9

Re: Proper way to handle arrays passed as parameters by Paul

Paul
Tue Mar 22 09:02:24 CST 2005

EXTERNAL ought to help.


"Altman" <NotGiven@SickOfSpam.com> wrote in message
news:eAwqNwuLFHA.2468@tk2msftngp13.phx.gbl...
> I am using a method that gets an array passed as a parameter. When I
> run it in development mode it runs fine. When I try to build it though,
> FoxPro gives an error saying Unknown myArray - Undefined. What do I have
> to do to make it so that it doesn't give this error. I have the array as
> the parameter to the method and I am passing the array by using the @.
>
>
> this is basically what I am doing
>
>
> Select *;
> FROM sometable;
> into array testarray
> if _tally > 0
> myProc(@testarray)
> ENDIF
>
>
> Procedure MyProc
> parameters myArray
> **do some stuff here with the array
> Endproc
>
>
> --
> Altman
> VFP9
>
>



Re: Proper way to handle arrays passed as parameters by Altman

Altman
Tue Mar 22 09:54:28 CST 2005

That did it thanks.


"Paul Pedersen" <no-reply@swen.com> wrote in message
news:eVs5sAvLFHA.3424@TK2MSFTNGP12.phx.gbl...
> EXTERNAL ought to help.
>
>
> "Altman" <NotGiven@SickOfSpam.com> wrote in message
> news:eAwqNwuLFHA.2468@tk2msftngp13.phx.gbl...
>> I am using a method that gets an array passed as a parameter. When I
>> run it in development mode it runs fine. When I try to build it though,
>> FoxPro gives an error saying Unknown myArray - Undefined. What do I have
>> to do to make it so that it doesn't give this error. I have the array as
>> the parameter to the method and I am passing the array by using the @.
>>
>>
>> this is basically what I am doing
>>
>>
>> Select *;
>> FROM sometable;
>> into array testarray
>> if _tally > 0
>> myProc(@testarray)
>> ENDIF
>>
>>
>> Procedure MyProc
>> parameters myArray
>> **do some stuff here with the array
>> Endproc
>>
>>
>> --
>> Altman
>> VFP9
>>
>>
>
>