Intelligent Automation & Macro Software  

Go Back   Tethys Solutions Forums > Products Zone > Automation Anywhere
Register FAQ Search Today's Posts Mark Forums Read

Automation Anywhere Post messages and questions related to Automation Software here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-06-2009, 11:05 PM
zaguber zaguber is offline
Junior Member
 
Join Date: Jul 2007
Posts: 21
Default Array Issues

Hi,

I am using Automation Anywhere 5.0 Integration Pack. I am using Two list variables Array1 and Array2. In previous version when i use the command below
1 Start Loop " List Variable Array1"
2 Message Box: "$Array1$"
3 Message Box: "$Array2$"
4 Comment: Please enter your commands to loop.
5 End Loop

IF the Both Array1 and Array2 moved to the next value. With the latest version Array1 moves to the next value where as array2 gives only the first value.
Please let me know if there is an option to move both variables to second value with each loopcounter.

Thanks
Syed
Reply With Quote
  #2 (permalink)  
Old 07-07-2009, 06:41 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,337
Default

Hello,

If you wish to loop for these two list variables simultaneously i.e. in a single loop, items of both the list variables should increment then you will have to place the data in two columns of excel for e.g. Column1 would have ListVar1 items and Column2 would have ListVar2 items. Now, using Excel command (found under Applications command category), open that excel file (using Open Spreadsheet option), get all the data using Get Multiple Cells option and using 'Loop for each row in an Excel dataset' command get the data using $Excel Column$ variable. Whenever you have retrieved a range of cells from excel using Excel-> Get Cells->Get Multiple Cells., the rows and columns of the range are stored in the System Variable $Excel Column$ . Let's say you retrieved a range of cells from excel that have 2 columns. You can access the two columns of the table by calling $Excel Column(1)$, $Excel Column(2).

For your reference, we have attached a sample task in loop.zip. Please copy attached .atmn file under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder. Copy Book1.xls under C:\ and run the task.

Hope that helps.
Attached Files
File Type: zip Loop.zip (1.5 KB, 1 views)
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -7. The time now is 02:02 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2008 Tethys Solutions, LLC. All rights reserved