I.T. Discussion Community!
-Collapse +Expand
VB Classic
Search VB Classic Group:

Advanced
-Collapse +Expand VB Classic Store

Prestwood eMagazine

October Edition
Subscribe now! It's Free!
Enter your email:

   ► KBVB Classic Knowledge Base  Print This    All Groups  

Visual Basic Classic Tech Articles

These Articles are contributed by you (our online community members). They are organized by our knowledge base topics. Specifically, by the VB Classic sub-topics.

Contribute an Article

4 Visual Basic Classic Articles

Group: Visual Basic Classic


Topic: Tool Basics

Commenting Code
VB Classic, like all the VB-based languages, uses a single quote (') or the original class-style basic "REM" (most developers just use a quote). VB Classic does NOT have a multiple line comment.

Directives - #

Directives are sometimes called compiler or preprocessor directives. A # is used for directives within VB Classic code. VB Classic offers only an #If..then/#ElseIf/#Else directive.

Posted By Mike Prestwood, Post #101507, KB Topic: Tool Basics
  +Add Comment  (6 Comments)

VB Classic is a loosely typed language. Declaring variables is optional unless you use the Option Explicit statement to force explicit declaration of all variables with Dim, Private, Public, or ReDim. Using Option Explicit is strongly recommended to avoid incorrectly typing an existing variable and to avoid any confusion about variable scope.

Undeclared variables are variants. To specifically declare a variant, use:

Dim x As Variant
Dim x 

Common data types include Byte (0..255), Boolean, Integer (2-byte integers), Long (4-byte integers), Currency, Single (32-bit number), Double (64-bit number), Date, String, and variant.

Variables declared with Dim at the module level are available to all procedures within the module. At the procedure level, variables are available only within the procedure.

Posted By Mike Prestwood, Post #101569, KB Topic: Tool Basics
  +Add Comment




Topic: Language Basics

VB Classic logical operators:

and and, as in this and that
or or, as in this or that
Not Not, as in Not This

Posted By Mike Prestwood, Post #101892, KB Topic: Language Basics
  +Add Comment  (5 Comments)




Topic: Language Details

VB Classic is a non-OOP language with some OOP features. It offers both Subs and Functions. A Sub does not return a value while a Function does. When Subs and Functions are used in a class module, they become the methods of the class.

Posted By Mike Prestwood, Post #101601, KB Topic: Language Details
  +Add Comment


Follow PrestwoodBoards on: 


©1995-2019 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech