Originally posted by Parul Bagadia
My first program in VB
Collapse
X
-
Originally posted by jg007what error message are you getting though ????Code:len(inno)
Comment
-
Finally i have reached till converting my no. in desired base; but now the problem is my output is stored in an array of string and i dont know how will i print it in VB.
I used print statement; nothing happened, compiler didnt even show the error message, but nothing happened as well.
I want the output in text2.text(a text box), so i directly used a for loop.
Right now my desired number is in reminder....
But still its not working, data type of both text2.text and reminder which is an array is string.
Can someone spot what should be the changes?
Code:k = j - 1 For i = 0 To j - 1 Text2.Text = reminder(k) k = k - 1 Next i
Comment
-
I used Debug.Print as well; but its printing the number in debugger.
This is quite important to me.
Someone if knows tell me how to print an array in text boxComment
-
I even tried to convert an array in string using Join but; it was giving random answers...... I need to know how do we display an array in Textbox.. Can someone tell me?Comment
-
I have something to say about this code:
Code:For i = 0 To 9 If (inno(i) >= 0 And inno(i) <= 9) Then
An array is created like this:
Dim numbers(0 To 9) As Integer
EDIT: Oh, and to answer your question, use something like this:
Code:For i = 0 To 9 Text2.Text = Text2.Text & Array(i) Next
Comment
Comment