07-16-2008, 12:03 PM
you need to do a small change in code:
Code:
Function formatmyTime
Dim myTime
FormatDateTime Now(), 3
myTime = "Time = " & Month(Now()) & "." & Day(Now()) & "." & Year(Now()) & " " & Time()
formatmyTime = Replace(myTime,":",".")
End Function
Code:
SwfWindow("Form").SwfEdit("TextboxName").Set "formatmyTime"
Want to fast track your QTP/UFT Learning? Join our UFT Training Course