Snippets are activated when a range of characters are typed that match the selected snippet and then pressing the activation key, TAB for instance.
V{variable type} for a normal variable declaration Example VS to declare a string
Bar String(10)RV{variable type} if you want to define a reference variable: example RVS to declare a reference varialbe to a string
Bar &StringPV{variable type} if you want to define a procedure variable: example PVS to declare a string parameter
(STRING Foo)PVR{variable type} if you want to define a procedure reference variable: example PVRS to declare a reference to a string parameter
(*STRING Foo)| Shortcut | Variable |
|---|---|
| as | ASTRING |
| bf4 | BFLOAT4 |
| bf8 | BFLOAT8 |
| bs | BSTRING |
| b | BYTE |
| cs | CSTRING |
| dt | DATE |
| d | DECIMAL |
| l | LONG |
| pd | PDECIMAL |
| ps | PSTRING |
| r | REAL |
| sh | SHORT |
| sg | SIGNED |
| sr | SREAL |
| s | STRING |
| ti | TIME |
| ul | ULONG |
| usg | UNSIGNED |
| us | USHORT |
Below is a list of Snippits that can be used
IF
IF THEN
ENDIFE
IF THEN
ELSE
ENDMAP
MAP
ENDMODULE
MODULE
ENDLOOP
LOOP
ENDLOOPFT
LOOP {var} = {From} to {To}
ENDLOOPFILE
LOOP UNTIL ACCESS:{FileName}.Next()
ENDACCESS
Access:{FileName}.Methd(Params)DEBUG
'{User Text} [' & {var} & ]'DCLASS - define a Class
{ClassName} CLASS,TYPE,MODULE('{ClassName}.clw'),LINK('{ClassName}.clw')
ENDDCLASSCD - define a class with a constructor and destructor
{ClassName} CLASS,TYPE,MODULE('{ClassName}.clw'),LINK('{ClassName}.clw')
CONSTRUCT PROCEDURE()
DESTRUCT PROCEDURE()
END IClass - implement a class
MEMBER()
INCLUDE('ClassName.inc'),ONCE
MAP
ENDIClassCD - implement a class with constructor and destructor
INCLUDE('{ClassName}.inc'),ONCE
MAP
END
{ClassName}.CONSTRUCT PROCEDURE()
CODE
{ClassName}.DESTRUCT PROCEDURE()
CODEMethod - implement a class method
{ClassName}.{MethodName} PROCEDURE({Parameters})
CODEDProc - define a procedure
{Name} PROCEDURE({parameters}),{ReturnType}IProc - implement a procedure
{Name} PROCEDURE({parameters})
CODE