|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
Response = MsgBox(Msg, Style, Title) If Response = vbYes Then ' User chose Yes {action} else {action} end if For msgbox, the Response can tell if the user has click on Ok or Cancel. How can I if the user has click Ok or Cancel for inputbox? thanks, Dawn |
|
#2
|
||||
|
||||
|
Hi, you can just check it like this
Code:
result = InputBox("message", "title")
If result = "" Then 'User input nothing, same as cancel
{action}
Else
{action}
End If
hope this helps
__________________
Look! Its a ShemZilla ![]() ![]()
|
|
#3
|
|||
|
|||
|
I understand now. Thanks a lot...
![]() |
|
#4
|
||||
|
||||
|
no problem
![]() |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > InputBox |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|