variables in an array
Richard D. Williams
richard at appgrp.net
Wed May 1 10:16:37 PDT 2013
top post:
You can use a variable or real field value as an array pointer.
dim test(5);test("1")="NOW";
ha=test(1);msgbox ha;end
In this case the number one is field 1, just as if you may use ct.
Scott asked a good question, what is "ady"? Another array? A llookup
reference?
Richard
On 4/30/2013 10:25 AM, Scott Nelson wrote:
> Welcome to the list.
>
> You are looping through your adz array correctly. You do not need to
> dim ct since it is your counter, just 'ct(3,.0)' will do. Is ADY a file
> handle or another array?
>
>
>
>
> On 4/30/2013 9:58 AM, tob at b-e-s-t.com wrote:
>> Is there a way to loop through an array using variables?
>> or at least a way around it other than doing writes to another file?
>>
>> dim adz(100)(5,*)
>> dim ct(3,.0)="0"
>> loop1:ct=ct+"1"
>> :ct GE "100":return
>> :adz(ct)=ady("1"):adz(ct)="Y"
>> goto loop1
>>
>> I am new to this group and I apologize if this has been recently been discussed. But I don't see where fp will allow a variable in an array?
>> Thanks
>> tob at b-e-s-t.com
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: http://mailman.celestial.com/pipermail/filepro-list/attachments/20130430/0d67f50c/attachment.html
>> _______________________________________________
>> Filepro-list mailing list
>> Filepro-list at lists.celestial.com
>> Subscribe/Unsubscribe/Subscription Changes
>> http://mailman.celestial.com/mailman/listinfo/filepro-list
>>
>>
>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
>
>
More information about the Filepro-list
mailing list