Skip To Content

INTEGRAL

INTEGRAL DSL Reference Guide

Jump directly to: 

::my.app.Print(string)

This function writes a string to the INTEGRAL output buffer.

Parameters

string

A string to be written.

Return Value

The function returns DV_RET_OK on success and DV_RET_ERR on failure.

Notes

This function can be called multiple times during a web session. The function always writes in append mode (i.e. it extends the output buffer). Once Print is called, the buffer output mode is set to text; any subsequent calls to Write, Export or any other function that writes to the output buffer in binary mode will fail.

Example 1

::my.app.Print("Hello World\n");

Example 2

::my.app.Print("<h1>Hello World</h1>\n");

Example 3

local w = ::my.app;
local p = @(str) w.Print(str);

w.Print("<h1>Hello World</h1>\n");
p("<h1>Hello World Once Again</h1>\n");