Brauche Hilfe bei einen Code

Karnimani

Grünschnabel
Ich habe ein kleines Problem, wenn ich den Code hier:
For i = 1 To 10
print i; "Hallo"
Next i

Dann erscheint 10mal Hallo im Formfenster. Wie krieg ich das nun in eine Textbox?
 
hallo Karnimani,

versuch mal dieses:

Dim newText as String
Dim i%

For i = 1 to 10
newText = newText & "Hallo" & vbCrlf
next i

TextBox.Text=newText

Viel Spaß

ANI
 
Zurück