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
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…