FormatString Property Example

The following examples illustrate how the FormatString property works.

Note   If you are using the MSFlexGrid, substitute "MSHFlexGrid1" with "MSFlexGrid1."

' Set column headers.
s$ = "<Region |<Product |<Employee |>Sales "
MSHFlexGrid1.FormatString = s$

' Set row headers (note semicolon at start)
s$ = ";Name|Address|Telephone|Social Security#"
MSHFlexGrid1.FormatString = s$

' Set column and row headers.
s$ = "|Name|Address|Telephone|Social Security#"
s$ = s$ + ";|Robert|Jimmy|Bonzo|John Paul"
MSHFlexGrid.FormatString = s$