Text Property (VSFlexGrid)

Returns or sets the contents of the selected cell or range.

Syntax

[form!]VSFlexGrid.Text[ = value As String ]

Remarks

The Text property retrieves the contents of the current cell, defined by the Row and Col properties. When a string is assigned to the Text property, is applied either to the current cell or copied over the current selection, depending on the settings of the FillStyle property.

The code below sets the contents of the fourth column of the fourth row to Apple:

    fg.Select 3, 3

    fg.Text = "Apple"

To read or set the contents of an arbitrary cell, use the Cell(flexcpText) or TextMatrix properties. To read the formatted contents of a cell using the Cell(flexcpTextDisplay) property. To read the numeric value of a cell, use the Cell(flexcpValue), Value, or ValueMatrix properties.

Data Type

String

See Also

VSFlexGrid Control