HtmlBind Method (DATATABLE)


10.5, PLBCMP GUI Only

 

The HtmlBind method connects the DATATABLE to a HTMLCONTROL. The method uses the following format:

 

[label]

{object}.HtmlBind

[GIVING {return}]:

 

 

USING [*Object=]{htmlcontrol}[:

 

 

[*Style=]{style}][:

 

 

[*Options=]{options}]

 

Where:

label

Optional. A Program Execution Label.

object

Required. A DATATABLE object.

return

Optional. A Numeric Variable that returns a method result.

htmlcontrol

Required. A HTMLCONTROL object used to view DATATABLE data.

style

Optional. A Numeric Variable or decimal number that specifies the format used to show the data in the HTMLCONTROL.

options

Optional. A Numeric Variable or decimal number to control the behaviors of this method.

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. The HTMLCONTROL object must be created before execution of this method.

  2. Thee data in the DATATABLE is viewed in the HTMLCONTROL in one of two possible styles which are the LISTVIEW or CARDS formats.

  3. The {options} parameter is implemented for future use.

  4. The EOS flag is always cleared.

  5. A return of zero indicates success and a non-zero value is failure.

  6. The ZERO flag is set if the {return} value is zero.

  7. The OVER flag is set if the {return} variable is too small to receive the return value.

  8. When this method is executed, the HTMLCONTROL 'CODEPAGE' property is set to zero.

  9. The style used to present/show the data in the HTMLCONTROL object. The supported styles are defined as follows:

  10.  

    Value

    Constant

    Meaning

    1

    $TBL_HTML_LISTVIEW

    Default if style is not used

    2

    $TBL_HTML_CARDS

    Cards

 

 

See Also: Method Syntax, DATATABLE Methods

 



PL/B Language Reference GetRowTextAll Method (DATATABLE) HtmlSave Method (DATATABLE)