Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
126 views
Welcome To Ask or Share your Answers For Others

1 Answer

Less than 3 characters

 If Username.Length < 3 Then

 End If

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...