Micro Focus QTP (UFT) Forums
change Interger to Character - 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: change Interger to Character (/Thread-change-Interger-to-Character)



change Interger to Character - yuetling926 - 11-25-2009

Dear all,

I am using the QTP to get the month of the calendar.
However, when I am doing subtraction from the month, say from 11 to 10.
The variable storing the value "10" would become a integer type.
However, as u know that all Siebel text fields required the values entered with type equal to string.

How can I solve it?


RE: change Interger to Character - Saket - 11-25-2009

Use 'Cstr' - which will return a String containing the number.