Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If Text found
#1
Solved: 10 Years, 9 Months 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: 10 Years, 9 Months 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: 10 Years, 9 Months 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: 10 Years, 9 Months 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 857 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,546 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,291 08-13-2013, 08:37 PM
Last Post: excellentpawan
  If an Excel spreadsheet is not found then... mv8167 3 3,304 03-21-2012, 10:12 AM
Last Post: sshukla12
Wink Element not found - VbWindow edj1 4 4,755 02-29-2012, 12:00 AM
Last Post: edj1

Forum Jump:


Users browsing this thread: 1 Guest(s)