Hi Subash

i have writen one function for that use this it will enter the date as
Wednesdays day of the week.suppose u are entering the date in the edit box u
need write as

Browser().page().Webedit(0.set WedDay

it will set Wednesday of the week

Function WedDay()
    MyDate=    Weekday(Date)
    If MyDate=1 Then
      NewDate = DateAdd("d",3,Date)
      Elseif MyDate=2 Then
      NewDate = DateAdd("d",2,Date)
      Elseif MyDate=1 Then
      NewDate = DateAdd("d",1,Date)
      Elseif MyDate=0 Then
      NewDate = DateAdd("d",0,Date)
      Elseif MyDate=0 Then
      NewDate = DateAdd("d",-1,Date)
      Elseif MyDate=0 Then
      NewDate = DateAdd("d",-2,Date)
      Elseif MyDate=0 Then
     NewDate = DateAdd("d",-3,Date)
     End If
     WedDay=NewDate
End Function

msgbox WedDay


Please reply to this is it your requirement met or not.

Thnaks
raghu

On Mon, Jun 20, 2011 at 2:16 PM, Ganga Subash <
[email protected]> wrote:

> Hi,
> My Scenario is:
> I need to enter the Date in the Date field, as per my requirment, that day
> should be "Wednesday" always.
> E.g., 8th, 15th, 22nd, 29th June 2011 will be always "Wednesday".
> Like that, I should select a date , which should fall as wednesday for
> future months.
>
> Regards,
> Ganga
>
>
>
>
> On Fri, Jun 17, 2011 at 8:40 PM, Shalabh Dixit <[email protected]>wrote:
>
>> Hi Subash,
>>
>> I think the requirement is not much clear. Please specify in detail so
>> that we can work upon and help you out.
>>
>>
>>
>> Regards
>> Shalabh Dixit
>>
>>
>>
>>   On Fri, Jun 17, 2011 at 5:58 PM, Ganga Subash <
>> [email protected]> wrote:
>>
>>>   Hi All,
>>>
>>> Could any one tell me, how to script for the following:
>>>
>>>    -  Need to select the date from calender, that should fall to the day
>>>    "Wednesday" everytime.
>>>
>>>
>>>
>>>
>>> Thanks in Advance,
>>> Ganga
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> "QTP - HP Quick Test Professional - Automated Software Testing"
>>> group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/group/MercuryQTP?hl=en
>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> "QTP - HP Quick Test Professional - Automated Software Testing"
>> group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/MercuryQTP?hl=en
>
>
>  --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>

-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

Reply via email to