|
-
May 28th, 2002, 06:32 PM
#1
Thread Starter
Addicted Member
vb Yes or no
How do i set value to thse so that not matter which one is clikc, they end the program?
-
May 28th, 2002, 06:35 PM
#2
The picture isn't missing
a = msgbox("are you sure you want to end the program?",vbyesno)
'no checking for it
unload me
Remember, if someone's post was not helpful, you can always rate their post negatively  .
-
May 28th, 2002, 06:37 PM
#3
Thread Starter
Addicted Member
But see herer is wher ei'm tyring to intergrate:
Code:
If feild.Quanity < quanty Then MsgBox " Hey now, check that quantity", vbOKOnly
End If
Only if that circumstace is true, should it end.. and now i switched it to vb ok only.
-
May 28th, 2002, 06:40 PM
#4
The picture isn't missing
change it to:
If feild.Quanity < quanty Then MsgBox " Hey now, check that quantity", vbOKOnly : Unload Me
Remember, if someone's post was not helpful, you can always rate their post negatively  .
-
May 28th, 2002, 06:44 PM
#5
Thread Starter
Addicted Member
-
May 28th, 2002, 06:45 PM
#6
The picture isn't missing
btw you spelled 'feild' wrong. it is spelled 'field'.
Remember, if someone's post was not helpful, you can always rate their post negatively  .
-
May 28th, 2002, 06:50 PM
#7
Hyperactive Member
you could do this
VB Code:
a= MsgBox("Exit?",vbYesNo)
If a = vbYes or vbNo Then
Unload Me
End
End If
We don't know what's wrong. . . So the best bet might be to remove something surgically.
-
May 28th, 2002, 06:52 PM
#8
The picture isn't missing
hey blinky think about what you just said.
If a = vbYes or vbNo Then
Unload Me
End
End If
when there are only 2 options, yes or no. why dont just remove that and use
Unload me
Remember, if someone's post was not helpful, you can always rate their post negatively  .
-
May 28th, 2002, 07:06 PM
#9
Hyperactive Member
If you read the original question:
How do i set value to thse so that not matter which one is clikc, they end the program?
He wants to have something that operates on clicking Yes Or No so i incorporated that into my response so that he can see how to do it that way. I would do it your way, and in fact do regularly when i do this sort of thing, but the question was put and while just ignoring the response options for this specific case works fine, it doesn't show him how to do one action on multiple click options in the future. So i wrote my code to show how to do that.
Hope i have explained myself.
Good coding.
We don't know what's wrong. . . So the best bet might be to remove something surgically.
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
|