![]() |
How to create a global variable in QTP - 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 create a global variable in QTP (/Thread-How-to-create-a-global-variable-in-QTP) |
How to create a global variable in QTP - galstar - 08-04-2010 Hi , I am facing a problem while creating script in QTP. Please find below the code... Code: Function RandomString( ByVal strLen ) '-----------*END FUNCTION*----------------------- Code: public a Asset_Id is a column in my datasheet.. But still value of as is not getting saved in that column..donn know why.. I am doing record and play.. So please help me to solve this issue. RE: How to create a global variable in QTP - supputuri - 08-04-2010 Hi Glastar, I think you are doing wrong when writting value to datatable. Can you please try to use Datatable.SetCurrentRow(i), rather than using setnextrow. Code: Datatable.SetCurrentRow(i) |