Feature Rich
Rapid Application Development
Helping you or your customers
Manage their Business

Coding Standards

Most languages have best practises when coding to ensure the maximum consistency and readability of code.

  • Variable names must be in capitals, and begin with V_ to denote them as a variable. e.g. V_SCORE
  • Array names must be in capitals, and begin with A_ to denote them as an array. e.g. A_VALUES
  • Function names must be in capitals and begin with F_ to denote them as a function. e.g. F_MYFUNC
  • XML tag names must be in lower case with no spaces and contain a-z, 0-9. Use underscore _ rather than dash - to separate words so it is not confused for a minus in expressions later.
  • The langiages is interpreted, so functions have to be declared before they are used.
  • Substitution is central to every process so you can eaisily add {V_MYVAR} in amongst some HTML and it will be replaced by the contents of V_MYVAR.

UDB Coding Standards

Naming Conventions

  • Variable names must use uppercase letters and begin with V_. Example: V_SCORE.
  • Array names must use uppercase letters and begin with A_. Example: A_VALUES.
  • Function names must use uppercase letters and begin with F_. Example: F_MYFUNC.
  • XML tag names must use lowercase letters, contain no spaces, and contain only a-z and 0-9.
  • Use an underscore (_) instead of a dash (-) to separate words in XML tag names. This prevents the dash from being confused with a minus sign in later expressions.

Function Declaration Order

UDB code is interpreted. Functions must be declared before they are used.

Variable Substitution

Variable substitution is used throughout UDB processes. Include a variable in HTML using the syntax . UDB replaces the variable expression with the contents of V_MYVAR.

<p></p>
2026-10-14 20:50:55