Visual Basic Cheat Sheet

visual-basic-cheat-sheet

Visual Basic Cheat Sheet

Visual Basic Cheat Sheet is a quick reference guides and quick reference sheets the you can use when coding in Visuabl Basic 6.  Visual Basic Cheat Sheet consists of code and syntax that you will commonly needed.

A cheat sheet or crib sheet is a concise set of notes used for quick reference. “Cheat sheet” may also be rendered “cheatsheet”. Cheat sheets are so named because they may be used by students without the instructor’s knowledge to cheat on a test.
Wikipedia

Here are some of the Visual Basic Cheat Sheet :

Operators

+, -, *, / Addition, subtraction, multiplication, division
\ Integer Division
Mod Remainder
^ Exponent
& String concatenation
=, >, <, >=, <= Comparison
NOT, AND, OR Boolean operators

DataTypes


Variant, Integer (%), Long(&), Single (!), Double (#), Byte, Boolean, Date, Currency (@), String ($)

CBool(expr), CByte(expr), CCur(expr), CDate(expr), CDbl(expr), CDec(expr), CInt(expr), CLng(expr), CSng(expr), CStr(expr), CVar(expr)

[Public | Private] Const constname [As type] = expression

Dim [WithEvents] varname [([subscripts])] [As [New] type]

ReDim [Preserve] varname (subscripts) [As type]

[Public | Private] Enum name

[Private | Public] Type varname elementname [([subscripts])] As type [elementname [([subscripts])] As type] . . . End Type

Set objectvar = {[New] objectexpression | Nothing}

Static varname[([subscripts])] [As [New] type]

For the complete cheat sheet list for Visual Basic 6 please check here.

Liked it? Take a second to support denricdenise on Patreon!

You may also like...