vb.net - Else statement not reaching the correct If for error -
i'm having problem because have combo box converted dropdownlist box , if not choose server inside of server not let them log in. i've put else statement when don't choose server correctly it'll pop up. want program use correct if statement kind of error.
code: (entire code)
if txtusername.text = my.settings.username , txtpassword.text = my.settings.password , cmbservers.text = "redox server" stripstatus.text = "connecting 'redox server; please wait...'" frmredox.show() me.close() else if txtusername.text = "" , txtpassword.text = "" msgbox("please input username , password login. if not have account may create one.", msgboxstyle.exclamation, "redox - error") if cmbservers.text = "" msgbox("please select server called 'redox server'.", msgboxstyle.critical, "redox - server connectivity error") end if end if end if
you did @ least miss "endif" or "elseif".
else if ... dosomething endif if ... dosomething endif endif
or this:
else if ... dosomething elseif ... dosomething endif endif
Comments
Post a Comment