|
-
February 3rd, 2000, 08:55 AM
#1
Try this one
Hi,
How do i put up a confirm box in visual basic?
This confirm box is used to allow the person to choose whether the record should be deleted or no?
I would appreciate it if anyone out there could show me the code.
Thanks in advance,
Derek
Ps: I am using
bChoice = window.confirm([sMessage])
how do i use this ??? or any other method.
Thanks
-
February 3rd, 2000, 09:02 AM
#2
Re: Try this one
use an msgbox:
dim intAnswer as integer
intAnswer = msgbox("Your text here",vbYesNo+vbQuestionmark,"title here")
if intAnswer = vbYes then
' code to delete record
else
' code not to delete record
endif
Tom Cannaerts
[email protected]
-
February 3rd, 2000, 09:03 AM
#3
Re: Try this one
In VB you would use the following
If MsgBox("Delete Record?", vbQuestion + vbYesNo) = vbYes then
'deleterecord
else
'do nothing
End If
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|