Tricentis Tosca 16.0 Released on Feb-2023 ----- UFT has been upgraded from UFT 15.0.1 to UFT One 15.0.2, Beginning at November 2020.

Thursday, 2 July 2015

current Day finding using Select case

 d=weekday(Date)

Select Case d
   Case 1
     Msgbox "Sleepy Sunday"
   Case 2
     Magbox "Monday again!"
   Case 3
     Msgbox "Just Tuesday!"
   Case 4
     Msgbox "Wednesday!"
   Case 5
     Msgbox "Thursday..."
   Case 6
     Msgbox "Finally Friday!"
   Case Else
     Msgbox "Super Saturday!!!!"
End Select


OutPut:
It will shows Current day.



No comments:

Post a Comment

Note: only a member of this blog may post a comment.