Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How Can we add two numbers in VB script without using Arithmatic operators
#5
Solved: 10 Years, 2 Months, 2 Weeks ago
Using pure vbscript
Code:
a = 10
b = 5

d = now
d1 = DateAdd("s", a, d )
d1 = DateAdd("s", b, d1)

result = DateDiff("s", d, d1 )
MsgBox "Sum of "& a & " and " & b & " is " & result
Reply


Messages In This Thread
RE: How Can we add two numbers in VB script without using Arithmatic operators - by kordirko - 06-23-2013, 12:31 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)