0% found this document useful (0 votes)
4 views

QTR 2 Lesson 2 VB Program Basics

The document outlines important guidelines for naming conventions in Visual Basic, emphasizing the use of a unique identifier with a maximum of 40 characters that cannot include spaces or reserved keywords. It also highlights commonly used function keys and codes, as well as the importance of using the ampersand for concatenation. Additionally, it advises against creating access keys with the same letter and notes that the absence of a completion code window indicates a potential coding error.

Uploaded by

alysonbaetiong16
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

QTR 2 Lesson 2 VB Program Basics

The document outlines important guidelines for naming conventions in Visual Basic, emphasizing the use of a unique identifier with a maximum of 40 characters that cannot include spaces or reserved keywords. It also highlights commonly used function keys and codes, as well as the importance of using the ampersand for concatenation. Additionally, it advises against creating access keys with the same letter and notes that the absence of a completion code window indicates a potential coding error.

Uploaded by

alysonbaetiong16
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

Most Commonly used

control / tool / object


Considered to be the
MOST IMPORTANT:
VB NAMING
CONVENTION
GUIDELINES
LETTER
After the first letter

letter,
number or an
underscore
CANNOT
any
blank space
UNIQUE
40 characters
in length
CANNOT be the
same with restricted
/ reserved
keywords
Naming Convention:
Example:
3 letter prefix + Name

Command Button:
cmdQuit
Most Commonly Used
Function Keys:
F5
F7
F4
Most Commonly Used
CODES:
End / Unload Me –

= “” –

.Setfocus -
Concatenation / Concat
The Ampersand (&)

ACCESS KEY.
✓ * You should NOT create an
ACCESS on the same Letter.
The CODES:
POINT to Remember:
When CODING, after typing
period (.) after the object name
and NO mini completion code
window appears then it simply
means that object DO NOT exist
therefore your CODE will be just
be an ERROR as well.

You might also like