Difference between revisions of "WRITEOUTPUT()"

From Lianjapedia
Jump to: navigation, search
(Created page with "==Purpose== Function to write a character expression to the current output ==Syntax== WRITEOUTPUT(<expC>) ==See Also== ?, ??, ECHO, Lianja|Lianja System Object...")
 
(Description)
Line 11: Line 11:
 
The WRITEOUTPUT() function is used to display the character expression <expC> to the current output.
 
The WRITEOUTPUT() function is used to display the character expression <expC> to the current output.
  
The WRITEOUTPUT() function is particularly used to assist in the debugging of .rsp scripts in web Apps.  Add the [[SET DEBUGOUT|set debugout on]] command along with WRITEOUTPUT() calls to the .rsp script then open the App in the browser using [[Deploying_to_Local_Directory#Preview_live_in_browser|Preview live in browser]]. The WRITEOUTPUT() display can then be monitored in the App Builder
+
The WRITEOUTPUT() function is particularly used to assist in the debugging of .rsp scripts in web Apps.  Add the [[SET DEBUGOUT|set debugout on]] command along with WRITEOUTPUT() calls to the .rsp script then open the App in the browser using [[Deploying_to_Local_Directory#Preview_live_in_browser|Preview live in browser]]. The WRITEOUTPUT() display can then be monitored in the App Builder Console workspace.
Console workspace.
+
  
 
==Example==
 
==Example==

Revision as of 05:06, 25 April 2022

Purpose

Function to write a character expression to the current output

Syntax

WRITEOUTPUT(<expC>)

See Also

?, ??, ECHO, Lianja System Object, Lianja/VFP Server Pages, MESSAGEBOX(), SET DEBUGOUT, SET SPACE, TRANSFORM()

Description

The WRITEOUTPUT() function is used to display the character expression <expC> to the current output.

The WRITEOUTPUT() function is particularly used to assist in the debugging of .rsp scripts in web Apps. Add the set debugout on command along with WRITEOUTPUT() calls to the .rsp script then open the App in the browser using Preview live in browser. The WRITEOUTPUT() display can then be monitored in the App Builder Console workspace.

Example

writeoutput("hello world")
 
// Lianja/VFP Server Page (.rsp) example
set debugout on
Lianja.writeoutput("Write this to the debug_server file")
writeOutput("Write this to the App Builder Console workspace")
? > m_database
? > _args
set debugout off