Intelligent Automation & Macro Software  

Go Back   Automation Anywhere, Inc. 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 09-25-2007, 06:20 AM
George George is offline
Junior Member
 
Join Date: Sep 2007
Posts: 1
Default Sub-Text

Hi.

I am VERY new to AA, but have a great deal of experience with other automation products.

I have defined a variable to be a list from a file. The task loops fine with no problems.

The issue is that I need to assign different parts of the variable from the list and cannot find how to do this.

For example, the variable is $PORecLin$, and it looks something like:
PORecLin=10000100123,10000100245,10000100360
where positions 1-6 are the purchase order number, 7-9 are the line number and 10-11 are the quantity received. When I loop the list, I get the entire line, but how do I parse this line into the separate variables?

Thank you very much.
Reply With Quote
  #2 (permalink)  
Old 09-26-2007, 02:57 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello George,

You can do something as follows

Loop for List $PORecLin$

If $Counter$ >= 1 Then
If $Counter$ <= 6 Then
Assign PORecLin to $Clipboard$
Assign $Clipboard$ to $PONumber$
Do something with $PONumber$
End If
End If

If $Counter$ > 6 Then
If $Counter$ <= 9 Then
Assign PORecLin to $Clipboard$
Assign $Clipboard$ to $LineNumber$
Do something with $LineNumber$
End If
End If

If $Counter$ > 9 Then
If $Counter$ <= 11 Then
Assign PORecLin to $Clipboard$
Assign $Clipboard$ to $Quantity$
Do something with $Quantity$
End If
End If

End Loop

You will need to define the three value type variables i.e. PONumber, LineNumber and Quantity.

Counter increments by 1 every time the loop goes to the next iteration. It starts with 1.

Hope that helps.
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 08:15 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2011 Automation Anywhere, Inc. All rights reserved