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 03-04-2008, 07:06 PM
philkryder philkryder is online now
Senior Member
 
Join Date: Sep 2007
Posts: 456
Default can you give us an example of a WS script that returns a value to a variable

Sorry that I don't know the WScript coding.

But, when you want to return a value, how do you do that.

Could you give us a sample?

Thanks!
Phil
Reply With Quote
  #2 (permalink)  
Old 03-04-2008, 10:40 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

Using Automation Anywhere, you can pass parameter to any java script or VB script and store the return value to a variable.

For your reference, we have attached "javascript.atmn".

All you need to do is, copy the task files (javascript.atmn) to.....\My Documents\Automation Anywhere\Automation Anywhere\My Tasks\

Create a variable with name “temp” from Tools->Variable Manager. 'Add new variable’ of value type and assign zero to it.

Also, copy “sumall.js” file to c:\ drive

Run the task. This task will sum up all the parameters that we passed and will return the output to Temp variable.

Hope that helps.
Attached Files
File Type: zip zip.zip (655 Bytes, 13 views)
Reply With Quote
  #3 (permalink)  
Old 03-05-2008, 10:28 AM
philkryder philkryder is online now
Senior Member
 
Join Date: Sep 2007
Posts: 456
Default

Quote:
Originally Posted by forumsupport View Post
Hello,

Using Automation Anywhere, you can pass parameter to any java script or VB script and store the return value to a variable.

For your reference, we have attached "javascript.atmn".

All you need to do is, copy the task files (javascript.atmn) to.....\My Documents\Automation Anywhere\Automation Anywhere\My Tasks\

Create a variable with name “temp” from Tools->Variable Manager. 'Add new variable’ of value type and assign zero to it.

Also, copy “sumall.js” file to c:\ drive

Run the task. This task will sum up all the parameters that we passed and will return the output to Temp variable.

Hope that helps.
thanks I saw that.

I was hoping for a WSscript example, since I'm not familiar with Jscript.

are there WScript samples?
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 01:09 AM.


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