Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VB Script for '/' and 'mod'
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi Sandya,

I have did a sample coding for ur requirement and it is working now. Below is the code which u can use.


Code:
intVar1=56
intOriginalVar1Value=56 ' Keeping the original value for later use
intVar2=8
intOriginalVar2Value=8  ' Keeping the original value for later use
intQuotient =1

While  intVar1 > intVar2
    intVar1=intVar1-intVar2
    intQuotient=intQuotient+1
    

Wend
intReminder = intOriginalVar1Value - (intOriginalVar2Value*intQuotient)
msgbox intQuotient
msgbox intReminder

Do let me know if u have any query.

Regards,
Ankesh
Reply


Messages In This Thread
VB Script for '/' and 'mod' - by sandya.qtp - 10-13-2011, 11:53 AM
RE: VB Script for '/' and 'mod' - by Ankesh - 10-17-2011, 05:44 PM
RE: VB Script for '/' and 'mod' - by vIns - 10-18-2011, 04:53 AM
RE: VB Script for '/' and 'mod' - by Ankesh - 10-18-2011, 10:19 AM
RE: VB Script for '/' and 'mod' - by sandya.qtp - 10-18-2011, 11:58 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)