Computing.Net > Forums > Programming > how do you a poll a msgbox in vbs

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

how do you a poll a msgbox in vbs

Reply to Message Icon

Name: gabe_ster
Date: November 2, 2009 at 18:47:18 Pacific
OS: Windows Vista
Product: Sony Vaio vgnnw180j/s notebook
Subcategory: General
Comment:

how can i create a messagebox that will do a poll if you use the yes and no buttons (4)
example x = msgbox ("is this helpful" ,4+32, " please help")
so like it counts the amounts of yes and no's for you



Sponsored Link
Ads by Google

Response Number 1
Name: gtaion
Date: November 2, 2009 at 19:49:28 Pacific
Reply:

Something simple like the following?


x=msgbox ("Is this helpful" ,36, " please help")

If x = VBYes then
Yes = Yes + 1
ElseIf x = VBNo then
No = No + 1
End If

wscript.echo "Yes " & yes & " No " & no


0

Response Number 2
Name: gabe_ster
Date: November 3, 2009 at 06:40:31 Pacific
Reply:

ty, but im sorry if i sound stupid, but its not adding up
like if i click yes it will be yes1 no
if i click yes again it will still be yes1 no
if i click no the third time it will be yes no1


-2

Response Number 3
Name: gtaion
Date: November 3, 2009 at 08:21:57 Pacific
Reply:

Correct, becuase you are only asking it once each time you run the script. Is this part of a bigger script and you want to call the question as a function? Or if you just want it to continue to ask yes or no, you can put it in a loop of some sorts if you have a stopping point, like Do While Yes is less the 10 or something like that, Or you can just have a running total by putting the question multiple times like the following. Really when it comes down to it, if you are using the script and getting your count once, then it exits the totals for yes and no need to be stored somewhere other then the script.


x=msgbox ("Is this helpful" ,36, " please help")

If x = VBYes then
Yes = Yes + 1
ElseIf x = VBNo then
No = No + 1
End If

x=msgbox ("Is this helpful" ,36, " please help")

If x = VBYes then
Yes = Yes + 1
ElseIf x = VBNo then
No = No + 1
End If

x=msgbox ("Is this helpful" ,36, " please help")

If x = VBYes then
Yes = Yes + 1
ElseIf x = VBNo then
No = No + 1
End If

x=msgbox ("Is this helpful" ,36, " please help")

If x = VBYes then
Yes = Yes + 1
ElseIf x = VBNo then
No = No + 1
End If

x=msgbox ("Is this helpful" ,36, " please help")

If x = VBYes then
Yes = Yes + 1
ElseIf x = VBNo then
No = No + 1
End If

wscript.echo "Yes " & yes & " No " & no


0

Response Number 4
Name: gabe_ster
Date: November 3, 2009 at 13:38:31 Pacific
Reply:

Alright thanks, Is there any way to do it, so it will save your answers and only ask once a time,

like you ask once, it records it and exits off?
and then you do the program lets say 2 hours later it records and exits off?

So if you put yes twice, it would say yes 2 no, even tho the program wasnt ran for hours?


-2

Response Number 5
Name: gtaion
Date: November 3, 2009 at 18:13:27 Pacific
Reply:

The only way that I can think that you would be able to accomplish that, would be to actually save the Yes and No totals in a file somewhere on the computer.


0

Related Posts

See More



Response Number 6
Name: gabe_ster
Date: November 3, 2009 at 18:28:15 Pacific
Reply:

alright thanks alot i know alot more then i did before i asked, Thank you Very Mutch =)


-2

Response Number 7
Name: Mr Awesome
Date: November 5, 2009 at 18:44:57 Pacific
Reply:

holy crap u guys are total losers.... why dont u all love wieners like i do?


1

Response Number 8
Name: gabeshomosexuallover
Date: November 5, 2009 at 18:59:17 Pacific
Reply:

me and my homosexual lover gabe gonzales love weiners. we stick them in every hole we can. i love all types of weiners, black weiners, big weiners, small weiners, it doesn't matter but my favorite weiner is the fake kind. it's not as warm but you can stick them way further into your butt hole. and gabe if your reading this i think you get the hint, and if you don't i'm saying i want to shove an enormous fake weinerr into your butt hole


1

Response Number 9
Name: Mr Awesome
Date: November 5, 2009 at 19:06:56 Pacific
Reply:

oh my goodness ur gabes homosexual lover? how is he in bed? is he big? hes the man of my dreams :) actually in my dreams i see him cumming so far in my butthole it comes out of my mouth :) and its so awesome i only wish it would come true


1

Response Number 10
Name: gabeshomosexuallover
Date: November 5, 2009 at 19:12:34 Pacific
Reply:

no he's tiny but loves taking it in the butt. he squeals like a pig. unless your mouth is 2 inches from your moth he will never reach it with his tiny tiny penus. but if you want to ride him he'd definetly be up for that. also he loves to cum in guys mouths


1

Response Number 11
Name: Mr Awesome
Date: November 5, 2009 at 19:16:24 Pacific
Reply:

oh man... tiny wieners are even better i love em when their tiny and i love to picture gabes wiener in my mouth too and the squealing sounds amazing... i want gabe to make me squeal haha, does he ever have diarrhea all over u during sex? cause if so i want him even more


1

Response Number 12
Name: gabeshomosexuallover
Date: November 5, 2009 at 19:26:36 Pacific
Reply:

he does, all the time. it feels amazing on my penus and tasts even better. also if you can shove somthing up far enough he bleeds all over the place, it makes us so horney.


1

Response Number 13
Name: Mr Awesome
Date: November 5, 2009 at 19:31:44 Pacific
Reply:

oh man sounds amazing i want his anal blood all over my wiener... does he ever have u s--- in his mouth? cause ive done that with guys and they say its amazing and does gabe ever let u cum in his butt?


1

Response Number 14
Name: gabeshomosexuallover
Date: November 5, 2009 at 20:44:20 Pacific
Reply:

yes, he love the taste of s---. somtimes he goes around and get animal s--- and eats it. and cum is his second favorite thing to have in his butt hole. his favoite thing is penus ofcoarse.


0

Sponsored Link
Ads by Google
Reply to Message Icon





Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: how do you a poll a msgbox in vbs

How do you skip lines in msgbox VB www.computing.net/answers/programming/how-do-you-skip-lines-in-msgbox-vb/3864.html

Drawing a shape in VB - pls help!! www.computing.net/answers/programming/drawing-a-shape-in-vb-pls-help/5355.html

Disabling the X in vB www.computing.net/answers/programming/disabling-the-x-in-vb/1008.html