problems with formatting text - 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: problems with formatting text (/Thread-problems-with-formatting-text) |
problems with formatting text - bis - 07-15-2008 i have a text box i want to put the time and date in so i can keep track of the times the tests are run Code: SwfWindow("Form").SwfEdit("TextboxName").Set "time " & Time() the problem is i want to format the time a certain way so i wrote this function Code: Function formatmyTime now how do i make it call myTime Code: SwfWindow("Form").SwfEdit("TextboxName").Set "time " & Time() RE: problems with formatting text - Ankur - 07-16-2008 you need to do a small change in code: Code: Function formatmyTime Code: SwfWindow("Form").SwfEdit("TextboxName").Set "formatmyTime" |