Currymunch
Member
- Joined
- Jan 21, 2008
- Messages
- 13
- Programming Experience
- Beginner
Just started to learn how do all this, quite fun but slow going >_<
I was looking for help with the following exercise:
I'm looking to break up a value of a String: for instance 123, so that it is entered into an array that i resized during initialization so that element 0 = 1 element 1 = 2 element 2 = 3. This is so i can perform numeric operations on the array later
'responds to a button click
----------------------------------------
Dim numDigits As Integer
Dim Digits() As Integer
Dim i As Integer
Dim total As Integer
Dim Max As Integer
Dim temp As String
'**********************************************
'*
'*Resizes the array by finding the length of the string
'*Converts to integer and plugs into array
'*
'**********************************************
numDigits = Len(numEnt.Text)
ReDim Digits(numDigits - 1)
temp = Val(numEnt.Text)
---------------------------------
How do i go about breaking the String numEnt.Text (the textbox on the form) up and entering into the Digits array
I was looking for help with the following exercise:
I'm looking to break up a value of a String: for instance 123, so that it is entered into an array that i resized during initialization so that element 0 = 1 element 1 = 2 element 2 = 3. This is so i can perform numeric operations on the array later
'responds to a button click
----------------------------------------
Dim numDigits As Integer
Dim Digits() As Integer
Dim i As Integer
Dim total As Integer
Dim Max As Integer
Dim temp As String
'**********************************************
'*
'*Resizes the array by finding the length of the string
'*Converts to integer and plugs into array
'*
'**********************************************
numDigits = Len(numEnt.Text)
ReDim Digits(numDigits - 1)
temp = Val(numEnt.Text)
---------------------------------
How do i go about breaking the String numEnt.Text (the textbox on the form) up and entering into the Digits array