Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problems with formatting text
#2
Solved: 10 Years, 9 Months, 3 Weeks ago
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
Reply


Messages In This Thread
problems with formatting text - by bis - 07-15-2008, 09:29 PM
RE: problems with formatting text - by Ankur - 07-16-2008, 12:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problems with Text color recognition Treirk 0 988 06-17-2019, 12:19 PM
Last Post: Treirk
  Need to Validate Text filed is blank after clicking on the Text box balak89 3 4,556 09-13-2015, 12:06 AM
Last Post: ADITI1992
  I am trying to extract text from a webelement but it is generating blank text scenari excellentpawan 2 4,296 08-13-2013, 08:37 PM
Last Post: excellentpawan
  Problems with URL as Object identifier??? jcraig26 1 3,187 02-27-2013, 05:06 PM
Last Post: anil2u
  QTP recording problems Masa 2 2,340 11-11-2012, 08:28 AM
Last Post: Masa

Forum Jump:


Users browsing this thread: 1 Guest(s)