FormatString Property (ModHFGrid) Example

The following examples illustrate how the FormatString property works.

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

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

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