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
#3
Solved: 10 Years, 3 Months, 1 Week ago
you are alsmost there arescool
but your code would return 31, Which is not the answer expected here.

how about this?
Code:
intNum1=10
intNum2=5

For i=1 to intNum1

    strDump=strDump & i & "X"

Next

For j=1 to intNum2

    strDump= strDump & j & "X"

Next

arrDump = split(strDump,"X",-1)

msgbox "Sum of " & intNum1 & " & " & intNum2 & " is " & UBound(arrDump)
Reply


Messages In This Thread
RE: How Can we add two numbers in VB script without using Arithmatic operators - by pavansri - 06-15-2013, 03:46 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)