The OpenD Programming Language

formatAs

This is the function called to turn return values into strings. Implement a template called _customFormat in your apiprovider class to make special formats. Otherwise, this provides the defaults of html, table, json, etc. call it like so: JSONValue returnValue; formatAs(value, this, returnValue, "type");

string
formatAs
(
T
R
)
(
T ret
,
string format
,
R api = null
,,
string formatJsonToStringAs = null
)
if ()

Meta