2012-08-16 23:41:25 -04:00
|
|
|
# Progress/OpenEdge ABL snippets
|
|
|
|
# define
|
|
|
|
snippet defbuf
|
2013-11-16 14:45:48 -05:00
|
|
|
DEFINE BUFFER b_${1:TableName} FOR $1 ${0}.
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet defvar
|
2013-11-16 14:45:48 -05:00
|
|
|
DEFINE VARIABLE ${1:VariableName} AS ${0}.
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet nl
|
|
|
|
NO-LOCK
|
|
|
|
snippet ne
|
|
|
|
NO-ERROR
|
|
|
|
snippet nle
|
|
|
|
NO-LOCK NO-ERROR
|
|
|
|
snippet ini
|
2013-11-16 14:45:48 -05:00
|
|
|
INITIAL ${0:?}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet nu
|
|
|
|
NO-UNDO
|
|
|
|
snippet err
|
|
|
|
ERROR
|
|
|
|
snippet ff
|
|
|
|
FIND FIRST ${1:BufferName}
|
2013-11-16 14:45:48 -05:00
|
|
|
${2:WHERE $1.${3}} ${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet input
|
2013-11-16 14:45:48 -05:00
|
|
|
DEFINE INPUT PARAMETER ${1:ParamName} AS ${0}.
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet output
|
2013-11-16 14:45:48 -05:00
|
|
|
DEFINE OUTPUT PARAMETER ${1:ParamName} AS ${0:ParamType}.
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet proc
|
|
|
|
|
|
|
|
/******************************************************************************/
|
|
|
|
|
|
|
|
PROCEDURE ${1:ProcName}:
|
|
|
|
|
2013-11-16 14:45:48 -05:00
|
|
|
${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
|
|
|
|
END PROCEDURE. /* $1 */
|
|
|
|
|
|
|
|
/******************************************************************************/
|
|
|
|
|
|
|
|
snippet alert
|
|
|
|
MESSAGE "${1:MessageContent}" ${2:Data} VIEW-AS ALERT-BOX.
|
|
|
|
snippet if
|
|
|
|
IF ${1:Condition}
|
|
|
|
THEN ${2:Action}
|
|
|
|
${3:ELSE ${4:OtherWise}}
|
|
|
|
snippet do
|
|
|
|
DO${1: Clauses}:
|
2013-11-16 14:45:48 -05:00
|
|
|
${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
END.
|
|
|
|
# datatypes
|
|
|
|
snippet int
|
|
|
|
INTEGER
|
|
|
|
snippet char
|
|
|
|
CHARACTER
|
|
|
|
snippet log
|
|
|
|
LOGICAL
|
|
|
|
snippet dec
|
|
|
|
DECIMAL
|
|
|
|
snippet sep
|
2013-07-17 19:06:05 -04:00
|
|
|
/* ------------------------------------------------------------------------- */
|