Ups, probably the only way:

arr = split(date, ""\")

if arr(0) > 12 OR arr(0) < 0 Then
   report error
End If
if arr(1) > 31 OR arr(1) < 0 Then
...

On Wed, Dec 3, 2008 at 4:46 PM, Dmitry Motevich <[EMAIL PROTECTED]> wrote:

> What about 12/*37*/2008?
> It matches your pattern :)
>
>
> On Thu, Dec 4, 2008 at 12:00 AM, Roman Zilber <[EMAIL PROTECTED]> wrote:
>
>> [0-1][0-9]/[0-3][0-9]/200[0-8]
>>  :)
>>
>> On Wed, Dec 3, 2008 at 3:57 PM, Kamran <[EMAIL PROTECTED]> wrote:
>>
>>> [0-1][0-2]/[0-3][0-9]/200[0-8]
>>>
>>> On Wed, Dec 3, 2008 at 4:43 AM, swetha4qtp delhi <[EMAIL PROTECTED]>wrote:
>>>
>>>> I have a Screen with Text box which should not accept more than 12 th
>>>> month , 30 th date and 2008 as year.
>>>>  If anyone have code for this please send me.
>>>>
>>>> regards
>>>>
>>>> swetha
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Regards,
>>> Kamran
>>>
>>>
>>>
>>
>>
>>
>
>
> --
> Dmitry Motevich,
> http://motevich.blogspot.com
>
>
> >
>

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