Wishlist - dim array with a variable

Nancy Palmquist nancy.palmquist at vss3.com
Wed Sep 27 08:07:27 PDT 2017


Richard,

Arrays are allocated when the programming is loaded.  Without a firm 
number, the size of the array can not be allocated properly.

The array for @dirlist[] is reading a directory list and is not a 
pre-allocated list, it is dynamic.  This kind of array does not need 
pre-allocated space since it is not a real array in that sense.  If the 
directories changed it would change, without programming.  You are not 
assigning data to a space in memory that must be available for that 
purpose.  This also applies to dim():lookup()  or dim():1  where the 
array is connected to live data already allocated to space somewhere.

Nancy


On 9/17/2017 10:58 PM, Richard Kreiss via Filepro-list wrote:
> I added to the Wishlist a request to allow for a variable to be used when
> dimensioning an array.  Dim(aa).
>
>   
>
> I know that we have been told over the years that this was not prossible.
> However consider @dirlist[] which is an array that holds the names of the
> files in a directory.  filePro does not know what directory or how many
> sub-directories will be there when the call is made.  The could be 10
> directories or 500 directories.  This got me thinking that at the system
> level that array may be dynamic.  Of course it could also be pre-configured
> to the maximum size and internally filePro is only showing the elements that
> are not blank.
>
>   
>
> Please go up on the fpTech's web-site and after logging in, at the resources
> and options, select the "Wishlist" and vote on this and any other items that
> you haven't already voted on.
>
>   
>
> Note that a number of the items on the Wishlist have already been
> implemented.  Of course if you have chosen not to upgrade from your original
> version, you will not be able to take advantage of them.
>
>   
>
> Richard
>
>   
>
> PS: Yes I am aware many of you don't like the license manager or the new
> licensing format.
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20170917/239eccda/attachment.html>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>

-- 
Nancy Palmquist         MOS & filePro Training Available
Virtual Software Systems    Web Based Training and Consulting
PHONE: (412) 835-9417           Web site:  http://www.vss3.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20170927/e3d5e7ad/attachment.html>


More information about the Filepro-list mailing list