Variable Names

Variables are storage places in a program and can contain numbers and strings. Variables are stored in the computer's memory. Variables are used with keywords and functions, such as char and MATH_NUMERIC, and must be declared at the beginning of the program.

A variable name can be up to 32 characters in length. Be as descriptive as possible and capitalize the first letter of each word.

You must use Hungarian prefix notation for all variable names, as shown in this table:

Prefix

Description

c

JCHAR

sz

NULL-terminated JCHAR string

z

ZCHAR

zz

NULL-terminated ZCHAR string

n

short

l

long

b

Boolean

mn

MATH_NUMERIC

jd

JDEDATE

lp

long pointer

i

integer

by

byte

ul

unsigned long (identifier)

us

unsigned Short

ds

data structures

h

handle

e

enumerated types

id

id long integer, JDE data type for returns

ut

JDEUTIME

sz

VARCHAR