x = 12/30/2008 Dte = Split(x,"/",-1)
mth = Dte(0) sDay = Dte(1) Yr =Dte(2) if Mth>12 then if Browser().dialog().Static().Exist then ''' for 'Pop Up''''' Reporter.ReportEvent micpass,"Stpe1" , "pass" else Reporter.ReportEvent micfail,"Stpe1" , "Fail" End if if sDay>30 then if Browser().dialog().Static().Exist then ''' for 'Pop Up''''' Reporter.ReportEvent micpass,"Stpe1" , "pass" else Reporter.ReportEvent micfail,"Stpe1" , "Fail" End if End if if Yrr>2008 then if Browser().dialog().Static().Exist then ''' for 'Pop Up''''' Reporter.ReportEvent micpass,"Stpe1" , "pass" else Reporter.ReportEvent micfail,"Stpe1" , "Fail" End if I think it works. On Wed, Dec 3, 2008 at 3:13 PM, 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 > > > > > -- 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 -~----------~----~----~----~------~----~------~--~---
