Hi Swathi,

we can use the split function to split a string in to parts.

EG -

text = hyd - 044

now i want assign the only std codes in to a verible. in this kind of cases
we can use split function.

std code of hyd= split(text," - ")

msgbox std code of hyd(1)

Result - 044

Regards,,,
Vasu


On Tue, Jul 7, 2009 at 2:33 PM, vasu sree <[email protected]> wrote:

> hello by using -  "FormatDateTime" you can change the all types of date
> formats in to your common value format.
>
> try it,,,,,,,,,
>
> VASU
>
>
>
>
> On Tue, Jun 30, 2009 at 6:25 PM, swati choudhary <
> [email protected]> wrote:
>
>> Hi,
>>
>> What is the mean by this split function.Can you please elaborat your "y"
>> statement.
>>
>> thanks
>>
>> On Sat, Dec 13, 2008 at 5:57 PM, rajanikanth b <[email protected]>wrote:
>>
>>> Below is example script, it works for yoye scenario.
>>>
>>> x = 12/12/2008
>>> y = split (x,"/",-1)
>>> dd=y(0)
>>> if dd>31 then
>>> if Browser().Dialog().exist then
>>>
>>> Browser().Dialog().Winbutton().click
>>>
>>> Reporter.Reportevent micpass, "" "your comments"
>>>
>>> else
>>>
>>>
>>> Reporter.Reportevent micFail, "" "your comments"
>>>
>>> end if
>>> end if
>>>
>>> mm=x(1)
>>>
>>> if mm>12 then
>>>
>>> if Browser().Dialog().exist then
>>>
>>> Browser().Dialog().Winbutton().click
>>>
>>> Reporter.Reportevent micpass, "" "your comments"
>>>
>>> else
>>>
>>>
>>> Reporter.Reportevent micFail, "" "your comments"
>>>
>>> end if
>>> end if
>>>
>>> yy=y(3)
>>>
>>> if yy>2050 then
>>>
>>> if Browser().Dialog().exist then
>>>
>>> Browser().Dialog().Winbutton().click
>>>
>>> Reporter.Reportevent micpass, "" "your comments"
>>>
>>> else
>>>
>>>
>>> Reporter.Reportevent micFail, "" "your comments"
>>>
>>> end if
>>>
>>> end if
>>> On Thu, Dec 11, 2008 at 6:51 PM, Rama Ramesh <[email protected]>wrote:
>>>
>>>> Hi Friends,
>>>>
>>>> In my application, date format is "dd/mm/yyyy" . If input value is other
>>>> than this date format, it throws an error msg.
>>>> can anyone please tell me, how to check date validations in qtp.
>>>>
>>>> Thanks in advance.
>>>>
>>>> Regards,
>>>> Rama
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Rajanikanth.B
>>>
>>>
>>>
>>>
>>
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
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