Become a part of the TranceAddict community!Frequently Asked Questions - Please read this if you haven'tSearch the forums
TranceAddict Forums > Main Forums > Chill Out Room > Help Quick
  Last Thread   Next Thread
Share
Author
Thread    Post A Reply
Vivid Boy
TA's GodFather



Registered: Sep 2001
Location: T.O
Help Quick

doing an exam right now all u Visual Basic whizzes plz help me out

heres the question i need help on
--------------------------------------------------------------------------------

Question 12 (5 points)

Write a Procedure named DisplayMessage that accepts a student's
score (intScore) and displays a message in a picture box named
picMessage. Use a Select Case statement to decide which message to
print.

If the Score is Display
- less than 59 - You can do it!
- equal to 59, 69, 79 or 89 - You almost made a better grade.
- greater than 79 - Excellent!
- None of the above - Good Work!

Also write the event procedure to handle the click event for
cmbDisplay. This event procedure will:
- take the value from txtScore
- print the message in picMessage

Old Post Mar-21-2002 00:53 
Click Here to See the Profile for Vivid Boy Click here to Send Vivid Boy a Private Message Add Vivid Boy to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Agent_WD40
Supreme tranceaddict



Registered: Jun 2001
Location: Washington

This should get ya going. I haven't done vb for about a year but this should work fine. Add error checking and whatever else you gotta do and it should work for ya. If you need anymore help just let me know.

Option Explicit

Private Sub DisplayMessage(intScore As Integer)
Select Case intScore
Case 0 To 58
picMessage.Print "You Can Do It!"
Case 59, 69, 79, 89
picMessage.Print "You almost made a better grade."
Case Is > 79
picMessage.Print "Excellent"
Case Else
picMessage.Print "Good Work!"
End Select
End Sub

Private Sub cmdDisplay_Click()
Dim intScore As Integer
intScore = txtScore.Text
DisplayMessage (intScore)
End Sub


___________________

Old Post Mar-21-2002 02:47  United States
Click Here to See the Profile for Agent_WD40 Click here to Send Agent_WD40 a Private Message Add Agent_WD40 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
tranceDJ
The Music Tickles My Ears



Registered: Feb 2001
Location: USA

hm...doesn't look like that helped him, it was posted about 2hours after vivid posted, that sux, I hope you were able to do it Vivid

Old Post Mar-21-2002 03:31  United States
Click Here to See the Profile for tranceDJ Click here to Send tranceDJ a Private Message Add tranceDJ to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Agent_WD40
Supreme tranceaddict



Registered: Jun 2001
Location: Washington

Yeah, I noticed that to. I was hoping that it would be a take home test due at then end of the day or in a few hours or something. I tried.


___________________

Old Post Mar-21-2002 04:01  United States
Click Here to See the Profile for Agent_WD40 Click here to Send Agent_WD40 a Private Message Add Agent_WD40 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Vivid Boy
TA's GodFather



Registered: Sep 2001
Location: T.O

thnx alot agent for ur help...but i failed lol....but i got two other answers off some kid next to me so hopefully i got the multiple choice right and i passed with a 50

Old Post Mar-21-2002 04:33 
Click Here to See the Profile for Vivid Boy Click here to Send Vivid Boy a Private Message Add Vivid Boy to your buddy list Report this Post Reply w/Quote Edit/Delete Message

TranceAddict Forums > Main Forums > Chill Out Room > Help Quick
Post New Thread    Post A Reply

 
Last Thread   Next Thread
Click here to listen to the sample!Pause playbackAlan Braxe & Fred Falke - Intro (Original Club Mix) [2007] [1]

Click here to listen to the sample!Pause playbackRank 1 - Such As Life [2005]

Show Printable Version | Subscribe to this Thread
Forum Jump:

All times are GMT. The time now is 11:22.

Forum Rules:
You may not post new threads
You may not post replies
You may not edit your posts
HTML code is ON
vB code is ON
[IMG] code is ON
 
Search this Thread:

 
Contact Us - return to tranceaddict

Powered by: Trance Music & vBulletin Forums
Copyright ©2000-2026, Jelsoft Enterprises Ltd.
Privacy Statement / DMCA
Support TA!