you can use "back slash operator " to get reminder
if the reminder is 1 when divided by 2 ----------------odd
else even

try this ,,,

On Thu, Dec 20, 2012 at 8:16 AM, QTP <[email protected]> wrote:

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

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