[Top] [Prev] [Next] [Bottom]
[Contents]
SaTextAreaBegin
Prints the beginning HTML fragment of a text area form element to an HTML stream.
#include "SaRnHtml.h"
int SaTextAreaBegin(char* ename, 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.
- 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.
Prints the beginning HTML fragment of a textarea form element to an HTML stream.
The code fragment:
SaTextAreaBegin("Description", 4, 64, SA_CENTER);
will write:
<TEXTAREA NAME="Description" ROWS="4" COLS="64" ALIGN="CENTER">
to the output stream
[Top] [Prev] [Next] [Bottom]
[Contents]
info@bluestone.com
Copyright © 1997, Bluestone. All rights
reserved.