• Log in or sign up for an account here: https://www.sythe.org/login

Try Except

Jukka

Active Member
Joined
Nov 23, 2005
Sythe Gold
0
Messages
244
Age
34
Location
Finland, Helsinki
Try Except
In scar there is "Try Except Finally" etc to avoid run time errors and other errors..

What are the statements in visual basic?

Edit: DARN On error resume next -.-

How ever i have a new question:

In scar when your using a case of if statement.
in scar it would be:

Code:
If(World = 0)Then
  Begin ....

How do i make the visual basic type of 'Begin' like in scar so i can have 2 things instead of only 1 thing it does AFTER a if()Then statement?
 
Try Except
If statements:
Code:
if VARIABLENAME = "hi" then
  msgbox "do stuff"
else
  msgbox "do other stuff"
end if

if VARIABLENAME = "lol" then
  msgbox "do stuff"
elseif VARIABLENAME = "aaa" then
  msgbox "do other stuff"
end if

select case VARIABLENAME
  case "lol"
    msgbox "dostuff"
  case "no"
    msgbox "do stuff more"
  case else
    msgbox "oh noes"
end select
 
Try Except
what i mean was:

Code:
If World = 0 Then
  Msgbox "world"
  msgbox "ko"
else if 
  msgbox "oh no"
  msgbox "oh yeah"
end if

I figured it out..
 
Runescape Gamblingrunescape gambling
Back
Top