Search Tools Links Login

Input box

Posted: 2003-06-01
By: ArchiveBot
Viewed: 87

Filed Under:

Visual Basic 6

No attachments for this post

Hello friends i dont know how many people know this but not all,,this tutorial will let you know how to handle cancel button on input box
most of them dose this by checking the length of the value returned by the input box even though it works it is not the proper way todo it check ot this material Have fun...

Original Author: Joseph Varghese


Private Sub Command1_Click()
Dim str1 as String
str1=Inputbox("Enter some thing")
If Strptr(str1)<>0 then
'code for click of ok button
Elseif Strptr(str1)=0 then
'code for click of cancel button
End Sub

Comments on this post

No comments have been added for this post.

You must be logged in to make a comment.