Plz write the code, function will take the parameter as
month number, i.e., numerical value, but it returns the
last day of the month in string (weekday).
example: input: function parameter: 3(march)
output: thursday
Answer / lakshmi
Function MonthLastDayName(M,Y)
For i=31 to 28 step -1
MyDate=i&"-"&M&"-"&Y
if IsDate(MyDate)=true then
j=Weekday(MyDate)
Select case J
Case 1
Msgbox "Sunday"
Case 2
MsgBox "Monday"
Case 3
Msgbox "Tuesday"
Case 4
Msgbox "Wednesday"
Case 5
Msgbox "Thursday"
Case 6
Msgbox "Friday"
Case 7
Msgbox "Saturday"
End Select
Exit for
End if
Next
End Function
MonthLastDayName 9,2011
Plesae let me know if u hav any simplest answer than this.
| Is This Answer Correct ? | 2 Yes | 0 No |
Qtp has been installed on my pc but recently ON opening it is giving this error PLEASE REPLY IT IS URGENT IT WAS WORKKING FINE QTPRO.EX THE instruction at "0x7.. ...". referenced memory at "0000....The memory could not be read... Awaiting QTP XPERTS REPly URGENT
what are recovery management techiniques?
2 Answers BirlaSoft, GL Noble Denton,
What are the 3 main stages involved in testing with qtp?
What is log file?How to write log file code?
2 Answers Apps Lab, Value Labs,
What are the ordinal identifiers in web page?
What are the types of object repositories? Which one is you are using?
What is difference between QTP 8.2 Obect Repository and QTP 9.2 object Repository?
what is the smart identification techniqu?what r the different mechanisums used in it?
How qtp identifies objects?
What are the properties you would use for identifying a browser & page when using descriptive programming ?
I have action1, action2, action3 r there.my query is while executing if i get any error in action1 i want exit from here itself, otherwise execute action2, if i get any error in action2 i want exit from hereitself, like this,what is the method for this?
Where we can use the analog mode and where we can use the low – level mode?