GetColumnFormat Method (LISTVIEW)


PLBCMP GUI Only

 

The GetColumnFormat method retrieves the format of a column in a LISTVIEW object. The method uses the following format:

 

[label]

{object}.GetColumnFormat

[GIVING {return}] USING [*Index=]{index}

 

Where:

label

Optional. A Program Execution Label.

object

Required. A LISTVIEW object that is accessed.

return

Optional. A Numeric Variable that returns the format of the column as described below.

index

Required. A decimal number or Numeric Variable that specifies the zero-based column that is accessed.

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. Upon completion, if {return} is a one (1) byte INTEGER it will indicate the format of the column as described below. The constant names are defined in PLBMETH.INC:

  2.  

    Value

    Constant

    The column ...

    0x0

    LVCFMT_LEFT

    is left justified.

    0x1

    LVCFMT_RIGHT

    is right justified.

    0x2

    LVCMFT_CENTER

    is centered.

    0x800

    LVCMFT_IMAGE

    has an image.

    0x1000

    LVCMFT_BITMAP_ON_RIGHT

    has a bitmap on the right.

    0x8000

    LVCMFT_COL_HAS_IMAGE

    has an image.

 

  1. The OVER, EOS, and ZERO Condition Flags are always cleared.

 

 

See Also: Method Syntax, LISTVIEW Methods



PL/B Language Reference GetColumnCount Method (LISTVIEW) GetColumnOrderArray Method (LISTVIEW)