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 01-13-2010, 07:06 AM
trentonponder trentonponder is online now
Member
 
Join Date: Jan 2009
Posts: 51
Default Test if value is numeric

I'm using OCR and frequently the characters are not pulled in correctly (not entirely unexpected).

The characters I want are always numeric. Is there a way to force AA to test if a value is numeric, such as:

'Loop while variable is not numeric'


I could potentially put the value into Excel or a DB and test there but that would add to the complexity and pace of the task
Reply With Quote
  #2 (permalink)  
Old 01-13-2010, 08:28 AM
TylerMitton TylerMitton is online now
Member
 
Join Date: Nov 2009
Posts: 65
Default This might do it...

I just did a quick test... if you take the value you want to check to see if it is an int and divide it by 0 using a variable operations of: $Value$/0 you might get what you need.

You can check the result and if it equals:

1.#INF

Then it is an int, otherwise it isn't.

See attached task for an example... hope it helps!

Tyler
Attached Files
File Type: atmn numeric check.atmn (667 Bytes, 4 views)
Reply With Quote
  #3 (permalink)  
Old 01-13-2010, 06:52 PM
trentonponder trentonponder is online now
Member
 
Join Date: Jan 2009
Posts: 51
Default

Thanks Tyler, worked great!
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 06:50 AM.


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