Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dividing a term into years and months using mod operator in VBScript
#2
Solved: 11 Years, 4 Months ago
See if this will help -
Code:
Dim iTerm  ' Term in months

iTerm = 479 'say

msgbox int(iTerm/12) & " years " & iTerm mod 12 & " months"
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply


Messages In This Thread
RE: Forcing decimal place formating - by Ankur - 02-18-2011, 10:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  AND operator issue mv8167 4 8,195 09-14-2011, 12:00 AM
Last Post: mv8167

Forum Jump:


Users browsing this thread: 2 Guest(s)