So I wonder what ıs the reason you do not want to use mod function in qtp ?
My advice is buy an algorithm book (or search internet) for those kind of functions. 2012/12/20, QTP <[email protected]>: > Hi Try out this simple logic > > > inum=33 > rnum=(inum/2) > > snum =mid(rnum,len(rnum),1) > > num=cint(snum) > msgbox num > > > If num = 2 or num = 4 or num=6 or num = 8 or num = 0 Then > msgbox "x is even" > > else > msgbox "x is odd " > End If > > > > let me know if u need some-other logic > > Regards > Arun > > On Saturday, December 15, 2012 10:33:09 AM UTC+5:30, vijay kanaparthi > wrote: >> >> Hi all, >> >> how can u find the number even or odd without using mod function in qtp >> >> -- >> Thanks & Regards, >> Vijay >> 9916686756 >> >> > > -- > 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 > -- Rasim Avcı -- 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
