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
#2
Solved: 10 Years, 3 Months, 1 Week ago
Hi,
I wonder why no one has ever answered to this question :o

Let me try :
Code:
Dim intNumber1 : intNumber1 = 10
Dim intNumber2 : intNumber2 = 5
Dim strDump : strDump = Empty

For i = 1 To intNumber1
    strDump = strDump&"A"
Next

For i=1 To intNumber2
    strDump = strDump&"A"
Next

Msgbox Len ( strDump )

I know this is a very crude solution, so i will be looking to improve on it myself and if anyone of you can suggest a better solution , please do that ...
Reply


Messages In This Thread
RE: How Can we add two numbers in VB script without using Arithmatic operators - by arescool - 06-13-2013, 08:04 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)