28 Replies - 10635 Views - Last Post: 24 August 2006 - 08:40 AM
#1
Programming Reference Sheets: Visual Basic
Posted 14 August 2006 - 10:19 AM
It should cover the same type of things the C++ ref sheet covers, and we'll eventually do a more advanced one. Post everything here and we'll start to assemble this bad boy!
Replies To: Programming Reference Sheets: Visual Basic
#2
Re: Programming Reference Sheets: Visual Basic
Posted 14 August 2006 - 10:24 AM
#3
Re: Programming Reference Sheets: Visual Basic
Posted 14 August 2006 - 10:32 AM
#4
Re: Programming Reference Sheets: Visual Basic
Posted 15 August 2006 - 08:12 AM
Boolean, Byte, Currency, Date, Double, Integer, Long, Single, String, Variant.
Control Structures:
1)
If (<condition>) Then
<statments>
else
<statements>
End If
2)
IIF(<condition>,<truestatements>,<falsestatements>)
Case Control:
Select Case(<expression>)
Case(<expression 1>)
<statements>
Case (<expression 2)
<statements>
.
.
.
Case(<expression n>)
<statements>
Case else
<statements>
End Select
This post has been edited by Louisda16th: 15 August 2006 - 08:11 AM
#5
Re: Programming Reference Sheets: Visual Basic
Posted 15 August 2006 - 08:29 AM
a)
For (<counter>) = <startvall> To <endval> Step <Increment/Decrement>
(<statements>)
Next (<counter>)
B )
Do While(<expression>)
<statements>
Loop
c)
Do
<statements>
Loop While(<expression>)
d)
Do Until(<expression>)
<statements>
Loop
e)
Do
<statements>
Loop Until(<expression>)
f)
While <expression>
<statements>
Wend
Operators:
Arithmetic:
+,-,*,/,Mod,^
Logical:
AND, NOT, OR XOR,IS,EQV,IMP,LIKE
&-(Concatenation)
Comparision:
=,<,>,<=,>=
Common Events
Activte
Click
Change
DblClick
KeyDown
KeyUp
KeyPress
GotFocus
LostFocus
MouseDown
MouseUp
MouseMove
This post has been edited by Louisda16th: 15 August 2006 - 08:29 AM
#6
Re: Programming Reference Sheets: Visual Basic
Posted 15 August 2006 - 08:52 AM
#7
Re: Programming Reference Sheets: Visual Basic
Posted 15 August 2006 - 09:11 AM
#8
Re: Programming Reference Sheets: Visual Basic
Posted 15 August 2006 - 06:13 PM
Type declaration characters:
%-Integer
$-String
@-Currency
&-Long
#-Double
!-Single
Variable Declaration:
Dim/Static/Public <VarName> As <DataType>
Defining Constants:
Const <Name> = <Value>
This post has been edited by Louisda16th: 16 August 2006 - 06:14 AM
#9
Re: Programming Reference Sheets: Visual Basic
Posted 15 August 2006 - 06:23 PM
Declaration(0 Based Indexing)
Dim <varname>(<MaxIndexVal>) As <DataType>
(User Defined Indexing)
Dim <Varname>(<MinIndexVal> To <MaxIndexVal>) As <DataType>
Dynamic Arrays
Dim <varname>() As <DataType>
Redim <varname>(MaxIndexVal>)
For Each Next Loop
This Shud be at the loops section. I 4got bout it:
For Each <element> In <Group>
<statements>
Next <element>
With Statement(Im not sure wat section this cms under)
With <objectname>
.<Property1> =<Value>
.<Property2> =<Value>
.
.
.<Propertyn> =<Value>
End With
#10
Re: Programming Reference Sheets: Visual Basic
Posted 15 August 2006 - 06:24 PM
#11
Re: Programming Reference Sheets: Visual Basic
Posted 15 August 2006 - 06:34 PM
Common Controls
Label, Textbox, CommandButton, PictureBox, Frame, CheckBox, ScrollBars, Timer, DriveListBox, DirectoryListBox, FileListBox,Shape,Line,Data control,Image,OLE,ADODC
Some Library Functions
String:
LCase, UCase, Len, Trim, LTrim, RTrim, Left, Right, Mid, InStr, Space, String, Str, Asc, Chr, StrReverse
Numeric:
Int, Fix, CInt, Sgn, Val, Rnd, Randomize, Format, Round
Date & Time:
Now, Date, Date$, Time, Time$, DatePart, Day, Month, Year, Hour, Minute, Second, Timer, DateAdd, DateDiff.
Math:
Abs, Atn, Cos, Exp, Log, Sin, Sqr, Tan
Miscellaneous:
Is..., VarType, InputBox, MsgBox
#12
Re: Programming Reference Sheets: Visual Basic
Posted 15 August 2006 - 06:41 PM
[Private/Public] Sub <name> (<ArgumentList>)
<statements>
End Sub
Calling:
[Call] <name>
Functions:
[Private/Public] <Name>(<ArgumentList>) [As <Type>]
Modules:
Form Module
Standard Module
Class Module
#13
Re: Programming Reference Sheets: Visual Basic
Posted 15 August 2006 - 06:48 PM
On Error Statement:
On Error Goto <LineNumber>
On Error Goto <Label>
On Error Resume Next
Err Object:
Properties:
Number
Source
Description
Methods:
Clear
Raise
Error Object:
Properties:
Description
Number
Source
SQLState
NativeError
Leaving Error Handlers:
Resume
Resume Next
Exit Sub/Function/Property
End Sub/Function/Property
Err.Raise
(dat kinda wraps up all I know. theres also Database systems which i had to learn in school but it wont fit in)
This post has been edited by Louisda16th: 15 August 2006 - 06:52 PM
#14
Re: Programming Reference Sheets: Visual Basic
Posted 15 August 2006 - 06:53 PM
#15
Re: Programming Reference Sheets: Visual Basic
Posted 15 August 2006 - 08:05 PM
|
|

New Topic/Question
Reply




MultiQuote





|