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 02-28-2008, 03:06 PM
philkryder philkryder is online now
Senior Member
 
Join Date: Sep 2007
Posts: 456
Default Inserting "new line" into variables

I'd like to be able to use the VARIABLE MANAGER to create a variable value that can be used in standard msgbox messages.

I'd like to insert "new line" characters ASCII chr(10 )

how shall I best achieve that?
Reply With Quote
  #2 (permalink)  
Old 03-01-2008, 04:33 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

What we understand is, you want to insert a newline in message box. Am I right?
In that case, what you can do is,
1) Double click on 'Message Box' command.
2) Press 'F2' to select the variable whose value you want to see in message box. Hit Enter key and then insert some text.
3) Save the command.

When you will run this task, message box will show you text on new line.

Hope that helps.
Reply With Quote
  #3 (permalink)  
Old 03-01-2008, 09:23 AM
philkryder philkryder is online now
Senior Member
 
Join Date: Sep 2007
Posts: 456
Default

Quote:
Originally Posted by forumsupport View Post
Hello,

What we understand is, you want to insert a newline in message box. Am I right?
In that case, what you can do is,
1) Double click on 'Message Box' command.
2) Press 'F2' to select the variable whose value you want to see in message box. Hit Enter key and then insert some text.
3) Save the command.

When you will run this task, message box will show you text on new line.

Hope that helps.
Not exactly.

I want to put the NEW LINE character into the VARIABLE.

If I press F2 and am entering text, HOW do I include an ENTER key IN THE TEXT of the variable?
Reply With Quote
  #4 (permalink)  
Old 03-03-2008, 10:09 PM
philkryder philkryder is online now
Senior Member
 
Join Date: Sep 2007
Posts: 456
Default

could you take another look at this?
Reply With Quote
  #5 (permalink)  
Old 03-03-2008, 10:37 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

Could you please tell us exactly where you are going to use this variable with a new line in it? Unfortunately, you cannot create a variable with a new line. However, if you could explain us the scenario in which you want to use such variable then we can help you with some viable solution.

We have forwarded your requirement to the product development team for the future version of Automation Anywhere.
Reply With Quote
  #6 (permalink)  
Old 03-03-2008, 11:56 PM
philkryder philkryder is online now
Senior Member
 
Join Date: Sep 2007
Posts: 456
Default

when forming a message box message, I would like to be able to reuse text strings containing the new line character.


For example, I'd like a message that says

Window XXXX not found

Please call Phil at 888.555.1111


By having the string "[new line][new line] Please call Phil at 888.555.1111"
I can re-use the string for various chained tasks.

I would think that the implementation of the variable manager would be to use the same input solicitor as you use for inputting text strings in the "enter keystrokes" command.

that way, we would have the same flexibility to enter any string.

best
Phil
Reply With Quote
  #7 (permalink)  
Old 03-04-2008, 03:37 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

In that case, what you can do is,

1) Create one variable of Value type through Variable Manager let’s say $Abc$ and assign predefined string (Please call Phil at 888.555.1111) to it.
2) Double Click on Message Box command and hit Enter to enter a new line and then press F2 to select variable $Abc$.
3) Or insert text say ' Window XXXX not found', hit enter and then press F2 to select variable $Abc$.

We have created sample task (NewLineInMsgBox.atmn) for your convenience. Copy it under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder.

Before running this task initialize $Prompt-Assignment$ with "Please call Phil at 888.555.1111" (using Variable Manager)

Hope that helps.
Attached Files
File Type: atmn NewLineInMsgBox.atmn (147 Bytes, 1 views)
Reply With Quote
  #8 (permalink)  
Old 03-04-2008, 03:19 PM
philkryder philkryder is online now
Senior Member
 
Join Date: Sep 2007
Posts: 456
Default

sure, there are any number of ways to insert new lines into a message.

I wanted to insert them into THE VARIABLE.

Is there a list of restricted characters that cannot be created in variables?
Reply With Quote
  #9 (permalink)  
Old 03-04-2008, 09:49 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

Can you please email us your phone number at http://www.tethyssolutions.com/support_form.htm so that one of our Technical Support staffs can call you to help you resolve the problem.

Alternatively, you can reach us at 1-888-484-3535 x 3
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 07:51 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