Network Automation Software We are currently migrating this forum
over to our HelpSystems domain. Please
post all new threads in our new
HelpSystems Community Portal.
Post to the HelpSystems Forum
You are not currently logged on. You must be logged on in order to post. Log on
Or Create a new account
AutoMate Discussion
Decrease font size
Increase font size
Topic Title: Dynamic arrays (lists)
Topic Summary:
Created On: 03/08/2013 03:58 AM
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 03/08/2013 03:58 AM
User is offline View Users Profile Print this message

Author Icon
BlazBrencic
Journeyman (50-99)

Posts: 85
Joined: 09/12/2012

Hello!

Dunno know if this was mentioned before but I think you should include "dynamic" arrays. Arrays which don't have set initial size and grow (and shrinks) dynamically. This was (is) huge burden for VBA (and older programming languages). It has some benefits, but I think that generally there is more negative things.

Process (code) could fail because initial size of array was too small. On the other hand too big array is waste of resources despite resource being very small (less than 0,0000X...1 processing power).  

Thanks!

Best regards,

Bla┼ż

 03/10/2013 09:19 PM
User is offline View Users Profile Print this message

Author Icon
JeanDelfosse
Supreme Guru (1000+)

Posts: 8883
Joined: 03/30/2005

Blaz,
did you have a look on the "Redim Array" action (in the "Variables" group) ?
What would you intend doing that you are missing ?


Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder)


-------------------------
Jean Delfosse - Automate Beta Tester
Win7 Pro 64 bits -Win XP Pro SP3 32 bits - AM8, AM7, BPA10, BPA9, BPA8, BPA7, AM6 Enterprise, AM4
 03/11/2013 01:28 AM
User is offline View Users Profile Print this message

Author Icon
BlazBrencic
Journeyman (50-99)

Posts: 85
Joined: 09/12/2012

Hello Jean!

Yes I'm aware of ReDim function although I find it less convenient than dynamic array as I've mentioned in previous post.

First you have to make array which would be big enough and then "shrink" it. It could happen that initial size of array would be too small.

This was common in past but nowadays most of the programming languages support dynamic collections. Collection should "grow"/"shrink" by adding/removing item.

Also I think this approach is much more "natural" for beginners.

best regards

 03/11/2013 10:50 AM
User is offline View Users Profile Print this message

Author Icon
Liz Casale
AUTOMATE EMPLOYEE

Posts: 940
Joined: 05/23/2011

Hi Blaz,

Your suggestion has been added. We would also suggest using the "Redim Array" action as Jean did.

-------------------------
Liz Casale
Technical Support Representative
(213) 738-6966
Network Automation, Inc.

--------------------------------------------------------------------------------

AM5 5.5.5.1; AM6 6.2.8.0; AM7 7.1.3.0; AM8 8.0.9.0; AM9 9.0.3.4
BPA7 7.1.3.0; BPA8 8.0.9.0; BPA9 9.0.3.4
 03/11/2013 10:46 PM
User is offline View Users Profile Print this message

Author Icon
JeanDelfosse
Supreme Guru (1000+)

Posts: 8883
Joined: 03/30/2005

Blaz,
I agree the array handling by AutoMate is rather poor.
But it also can be done inside basic scripts that provide more flexible alternatives, like filling arrays with split or array statements.

The full AutoMate 9 basic scripting reference can be found at its builder site
http://www.winwrap.com/web/bas..._overview.htm&menu=yes
It is by some aspects more comprehensive than the help provided in AutoMate


Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder)


-------------------------
Jean Delfosse - Automate Beta Tester
Win7 Pro 64 bits -Win XP Pro SP3 32 bits - AM8, AM7, BPA10, BPA9, BPA8, BPA7, AM6 Enterprise, AM4
Statistics
18258 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 5551 on 01/08/2018 at 11:11 AM.
There are currently 1803 guests browsing this forum, which makes a total of 1803 users using this forum.

FuseTalk Enterprise Edition v4.0 - © 1999-2020 FuseTalk Inc. All rights reserved.

Sitemap Network Automation Software Blog