Frage

I'm having trouble checking if input is less then or grater 3 characters. should i use if statement or while loop?.

and also how to store all the data in listbox after inputbox entered:

For Num = 1 To CInt(nudPassengers.Value)
    Dim userName As String
    if userName < 3 then
    InputBox("Whats your name? " & Num)
    Dim infoForm As New frmBooking
    infoForm.lstItinerary.Items.Add(userName)
    end if
Next
War es hilfreich?

Lösung

Less than 3 characters

 If Username.Length < 3 Then

 End If
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top