dataFlddataFld*
*



Contents  *



Index  *Topic Contents
*Previous Topic: data
*Next Topic: dataFormatAs

dataFld

Description

Specifies which field of a given data source (as specified by the dataSrc property) to bind to the given element.

Syntax

object.dataFld

Remarks

The property can be set at run time. At design time it can be set through the DATAFLD attribute.

Examples

In the following example, the <OBJECT> with ID="sundae" has its Color property bound to the color column of the data source control. Similarly, the text box displays the flavor.

<TABLE DATASRC="#ice_cream">
    <TR> 
        <TD><INPUT TYPE=TEXTBOX DATAFLD=flavor>
<TD><OBJECT ID="sundae" WIDTH=100 HEIGHT=51
            CLASSID="CLSID:FFFFFFF-EEEE-DDDD-CCCC-BBBBBBBBBBBB">
            <PARAM NAME="Color" DATAFLD="color">
            <PARAM NAME="Appearance" VALUE="1">
        </OBJECT>
</TABLE>

In the following example the <SELECT> control is bound to the "card_type" column of the data source control "#order". The value of the field will result in the appropriate option being selected.

<SELECT DATASRC="#order" DATAFLD="card_type">
    <OPTION>Visa
    <OPTION>Mastercard
    <OPTION>American Express
    <OPTION>Diners Club
    <OPTION>Discover
</SELECT>

Applies To

A, APPLET, BODY, BUTTON, DIV, FRAME, IFRAME, IMG, INPUT, LABEL, MARQUEE, OBJECT, SELECT, SPAN, TEXTAREA


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.