Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21238

[RESOLVED] how to determine if inputbox is enpty

$
0
0
is there a way to determine if a inputbox is empty like a text?

exmple
Code:

if text1.text = "" then
msgbox "requierd fields"
end if

something like this

this is my code for the inputbox

Code:

Dim strName As String
strName = InputBox("insert a name")
TxtDesc.text = strName
TxtDesc.BackColor = &HC0E0FF


tnx in advanced
salsa31

Viewing all articles
Browse latest Browse all 21238

Trending Articles