[Top] [Prev] [Next] [Bottom] [Contents]

SaTextArea

Prints an HTML text area form element to an HTML stream.

Synopsis

#include "SaRnHtml.h"
int SaTextArea(char* ename, char* evalue, 
						int rows, int cols, int align);

Arguments

ename
A string specifying the name of the textarea element. This string is converted to an HTML-compatible string. If ename is NULL, an empty string is used as the element name.
evalue
A string specifying the value of the textarea element. This string is converted to an HTML-compatible string. If evalue is NULL, an empty string is used.
rows
An integer specifying the number of visible rows in an HTML textarea. If rows is greater than zero, the HTML fragment:
ROWS="rows" 
is added to the HTML stream. Otherwise the fragment is suppressed.
col
An integer specifying the number of visible columns in an HTML textarea. If cols is greater than zero, the HTML fragment:
COLS="cols"
is added to the HTML stream. Otherwise the fragment is suppressed.
align
An integer specifying which alignment fragment to use. Valid define constants and their associated HTML fragments are:
SA_NOALIGN SA_TOP ALIGN="TOP" SA_MIDDLE ALIGN="MIDDLE" SA_BOTTOM ALIGN="BOTTOM" SA_LEFT ALIGN="LEFT" SA_CENTER ALIGN="CENTER" SA_RIGHT ALIGN="RIGHT"

Return Values

Returns an integer with a value of 0.

Description

Prints an HTML textarea form element to an HTML stream.

Example

The code fragment:

SaTextArea("Description","describe here", 4, 64, SA_CENTER);
will write:

<TEXTAREA NAME="Description" ROWS="4" COLS="64" 
ALIGN="CENTER">describe here</TEXTAREA>
to the output stream.

See Also



[Top] [Prev] [Next] [Bottom] [Contents]

info@bluestone.com
Copyright © 1997, Bluestone. All rights reserved.