Visual Basic: Syntax

From Mario Fan Games Galaxy Wiki
Revision as of 16:38, 1 October 2008 by Black Squirrel (talk | contribs) (I know it's not Lua but VB doesn't have a logo and I need an example)
Lua
Lua.gif
Basics
Intermediate
Advanced
XLua
Add to this template
 Standardwikimessagebox.png This article assumes the use of Lua 5.1.

Information may not be accurate or may need revision if you are using a different version.

(This is currently more of a test to see whether or not these sorts of pages are worth making)

 Stub.png This article or section is in need of expansion.

Please add further information.

This is a list of common syntax elements in the Visual Basic programming language.

Comments

Comments in Visual Basic are made by placing an apostrophe ( ' ) at the beggining of a line.

'this is a comment in VB

As with most programming languages, comments are ignored by the Visual Basic interpreter and therefore don't effect the code in any way. They simply exist to help other programmers understand the code better.

IF Statements

Yada yada yada

If something = something then
dooby = dooble
Elseif somethingelse = something then
dooble = dooby
Else
doobledooby = true
End if

blah blah blah

Case

Select Case YOMAMMA
Case 2352
YOMAMMA = false
Case 63251
YOMAMMA = true
Case else
YOMAMMA = YODADDA
End select

and you get the message


and then there would be a box here with more meaningful tutorials listed in it