@AF Clarification Needed...

Stanley - stanlyn-com stanley at stanlyn.com
Wed Oct 5 08:12:24 PDT 2011


Ken,

>> Alias the array to the group itself:
>>  dim ItemNum(5):I2
No, not to the group, instead to the first field in a contiguous block of
fields as in
dim ItemNum(5):38

I will try the array to the group.

To be clear, when you say "group", you mean the "A2)" and "B2)" entries and
not the blocks of fields that is used for the non-contiguous definitions.

Also, in using "A2)", to filepro, what does the "A" represent as well as the
number and paren?

Thanks,
Stanley



 




-----Original Message-----
From: Kenneth Brody [mailto:kenbrody at spamcop.net] 
Sent: Wednesday, October 05, 2011 10:37 AM
To: Stanley - stanlyn-com
Cc: 'FilePro Mailing List'
Subject: Re: @AF Clarification Needed...

On 10/5/2011 12:07 AM, Stanley - stanlyn-com wrote:
> OK Ken, how do I calculate the field number that needs updated based on
what
> @af is and use it to update that field.

Well, unless there is a compelling reason not to, why don't you rename the 
fields go they all belong to the same group?  (ie, "A1" for quantity, "A2" 
for item number, "A3" for cost, and so on.)  This will eliminate the problem

of trying to reference fields in different groups.

> I did see in some routines that was working that an array was created on
the
> contiguous groups, however that will not work when they are not
contiguous.

Alias the array to the group itself:

     dim ItemNum(5):I2

[...]
> Is there a better way of doing this?

The "correct" way is to put fields that are related into the same letter
group.

[...]

-- 
Kenneth Brody



More information about the Filepro-list mailing list