Micro Focus QTP (UFT) Forums
how to pass a numeric value into webedit - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: how to pass a numeric value into webedit (/Thread-how-to-pass-a-numeric-value-into-webedit)



how to pass a numeric value into webedit - silpavinod - 10-11-2012

Hi,

I am having a webedit and i am passing 19 into that webedit.

But the issue is it is entering as 19 but it is not validating as numeric .... and i am sure whether it is taking as string or some other ....


RE: how to pass a numeric value into webedit - harishshenoy - 10-11-2012

Hi ,

Use the conversion functions here.. for numeric u can use cint() and try , then it will take it as integer only.


Thanks,
Harish



Use Cint(value) to convert and to make sure it is a numeric value...

Thanks,
Harish


RE: how to pass a numeric value into webedit - Ankesh - 10-15-2012

If you are trying to validate that webedit accepts only numeric character, you should better do the negative testing first. Enter ang junk character and check if error message was thrown. you can then check using a muneric value for the same.

Regards,
Ankesh


RE: how to pass a numeric value into webedit - silpavinod - 10-15-2012

Thanks for the reply ....i got the solution by using sendkeys