Method Html3():editField() Professional

Create an input control for the remote edit view.

Syntax
:editField( <cName>      , ;
            <cType>      , ;
            <nLen>       , ;
            <xValue>     , ;
            <lDistance>) --> NIL
Parameters
<cName>
The parameter <cName> is the filename.
<cType>
<cType> is a letter that corresponds with the field type listed in the DbStruct() array.
<nLen>
<nLen> is the field length.
<xValue>
<xValue> is the value stored in a field
<lDistance>
If the parameter <lDistance> is .T. (true), the controls are created in separate paragraphs (they are embedded in <p> and </p> tags).
Return

The return value of the method :editField() is always NIL.

Description

The method creates the HTML code for input controls that allow for remote editing of database fields.

The datatype <cType> of a field variable determines the type of the input control. If "C" or "N" is passed for <cType> (character or numeric), a single-line edit control is created. The letter "L" (logical) results in a checkbox, while the letter "M" (memo) produces a multiple-line entry field. Date fields are not supported.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.