working on a card game and im trying to cover all errors the players come across.
wierd things happen often
-a player cannot put a card in a open, usuable slot on the board
-a person will simply be skipped
Printable View
working on a card game and im trying to cover all errors the players come across.
wierd things happen often
-a player cannot put a card in a open, usuable slot on the board
-a person will simply be skipped
um... We can't help you much if you don't give us some of your code.
heres it is the code is really bulky and inefficient. i havent really learned vb. if they are suggestions on making it more
efficient and any errors
www.geocities.com/aaronpro/TRIPLETRIAD.zip
When an error is generated it will display the associated error number. In this way, you can connect the number with the error in your error trapping routine. Example: Error 13 is a Type Mismatch and 68 is Drive Not Found, so, knowing this, you can trap for errors, and handle each error differently.VB Code:
Private Sub DoSomethingCool() On Error Goto ErrRtn 'code to do cool stuff Exit Sub ErrRtn: Select Case Err Case 13 'type mismatch 'handle type mismatch Case 68 'drive not found 'handle drive not found Case SoOnAndSoForth 'handle SoOnAndSoForth Case Else Msgbox Err & " " & Error End Select End Sub
can anyone suggest good resources for learning vb?
Take a look at some of Jamie's tutorials - http://www.vbforums.com/showthread.p...hreadid=143394
Pick up a book on beginning VB.
Monitor this forum daily. :)
Good advise :) I've learnt more in 2 weeks than i have in 2 months.Quote:
Originally posted by Hack
Monitor this forum daily. :)