Array question
David Snyder
dave at wisvis.com
Tue Mar 9 14:39:21 PST 2010
On 3/9/2010 4:20 PM, Fairlight wrote:
> When asked his whereabouts on Tue, Mar 09, 2010 at 03:53:16PM -0600,
> Aldridge, Inc. took the fifth, drank it, and then slurred:
>> dim scremp(7)(26,uplow):ga
> [snip]
>> But in the present case, I want to fill 24 dummy fields, say aa-ax with
>> the contents of 24 sequential fields in a lookup file beginning with
>> field 50 there.
> [snip]
>> Is that a good way to accomplish this? If yes, but where in this example
>> would I tell the local array to begin, i.e. aa?
>>
>> I'm missing some level of understanding here and would appreciate some
>> insights or suggestions. Thanks
>
> I haven't tested, but I -highly- doubt that array overlay will work on
> dummy fields. To my knowledge, this is only meant to work on real, numeric
> fields.
>
> mark->
Yes, it can be done. But you need two arrays.
dim array1(24)(24,uplow):lookup(10)
dim array2(24)(24,uplow):aa
Then transfer from one array to the other in a loop.
Loop : ct="24" : end
:: ct=ct+"1" ; array2(2)=array1(ct) ; goto Loop
Dave
More information about the Filepro-list
mailing list