Template Language Functions

Published 2008-03-27    Printer-friendly version

In his articles this week on EVALUATE, Paul Blais notes that not all Clarion language statements are available to evaluate. And that brings to mind another place where a subset of language functions is available, and that's within the template language.

Just as I was releasing Paul's article I came across a note Bob Foreman posted some time ago in the newsgroups (I don't recall just where or when), listing the Clarion language functions which can be used in conjunction with the template language. That is, you can use them in template expressions, making the template language an even more powerful code-generation tool. You can even use EVALUATE within template expressions, although BIND isn't available.

  • ABS
  • ACOS
  • ADDRESS
  • AGE
  • ALL
  • ASIN
  • ATAN
  • CENTER
  • CHOOSE
  • CHR
  • CLIP
  • CLOCK
  • COS
  • DATE
  • DAY
  • DEFORMAT
  • EVALUATE
  • FONTDIALOG
  • FORMAT
  • GETINI
  • INLIST
  • INRANGE
  • INSTRING
  • INT
  • LEFT
  • LEN
  • LOG10
  • LOGE
  • LONGPATH
  • LOWER
  • MATCH
  • MEMORY
  • MONTH
  • NUMERIC
  • PATH
  • PUTINI
  • RANDOM
  • RIGHT
  • ROUND
  • SHORTPATH
  • SIN
  • SQRT
  • STRPOS
  • SUB
  • TAN
  • TODAY
  • UPPER
  • VAL
  • YEAR

If you've never taken the time to look at the template language, you're missing out on one of the truly great things about Clarion programming. Check out the template programming topic, in particular the Understanding Clarion Templates series.

Printer-friendly version