09-20-2012, 10:02 PM
I have an issue top check if a returned value is text0 or not. Is it possible to check if a value is text, numeric or both?
L
L
If Text found
|
09-20-2012, 10:02 PM
I have an issue top check if a returned value is text0 or not. Is it possible to check if a value is text, numeric or both?
L
09-20-2012, 10:21 PM
To check numeric --- IsNumeric(yourNumber) -- returns Boolean True or False
To check string --- TypeName(yourString) -- returns String if your input value is string
09-20-2012, 10:41 PM
Thx parminderdhiman84 for responding. But i am not sure if this will work (or not)
I guess i should have done a better job explaining. My issue is this. sometimes the value of my Pages = "None" (or some other text value) and sometimes Pages = 1, 2... etc If Pages = (TextValue) then Pages = "0" do I: If Not IsNumeric(Pages) then Pages = "0" ? Thx
09-25-2012, 11:24 PM
yes that will do the needful
|
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Object not found during the 2nd iteration of an Action call in a For loop | BGunay | 0 | 968 |
04-23-2020, 07:08 PM Last Post: BGunay |
|
Need to Validate Text filed is blank after clicking on the Text box | balak89 | 3 | 4,892 |
09-13-2015, 12:06 AM Last Post: ADITI1992 |
|
I am trying to extract text from a webelement but it is generating blank text scenari | excellentpawan | 2 | 4,661 |
08-13-2013, 08:37 PM Last Post: excellentpawan |
|
If an Excel spreadsheet is not found then... | mv8167 | 3 | 3,502 |
03-21-2012, 10:12 AM Last Post: sshukla12 |
|
Element not found - VbWindow | edj1 | 4 | 4,988 |
02-29-2012, 12:00 AM Last Post: edj1 |