Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If Text found
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
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
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
To check numeric --- IsNumeric(yourNumber) -- returns Boolean True or False
To check string --- TypeName(yourString) -- returns String if your input value is string
Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
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
Reply
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
yes that will do the needful
Reply


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
Wink Element not found - VbWindow edj1 4 4,988 02-29-2012, 12:00 AM
Last Post: edj1

Forum Jump:


Users browsing this thread: 1 Guest(s)