you are alsmost there arescool
but your code would return 31, Which is not the answer expected here.
how about this?
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)