Sub Globals
Dim Type(ColType,Description,ColWidth) ColumnNumber(3)
SelectedCol="" :SelectedRow=""
End Sub
Sub App_Start
InitialiseTable
Form1.Show
TextBox1.Focus
End Sub
Sub InitialiseTable
ColumnNumber(0).ColType="cString"
ColumnNumber(0).Description="ID"
ColumnNumber(0).ColWidth=30
ColumnNumber(1).ColType="cString"
ColumnNumber(1).Description="Description"
ColumnNumber(1).ColWidth=120
ColumnNumber(2).ColType="cString"
ColumnNumber(2).Description="Date"
ColumnNumber(2).ColWidth=60
For Index=0 To ArrayLen(ColumnNumber())-1
[COLOR="Red"] Table1.AddCol(cString,ColumnNumber(Index).Description,ColumnNumber(Index).ColWidth,False)[/COLOR]
[COLOR="SeaGreen"] 'Table1.AddCol(ColumnNumber(Index).ColType,ColumnNumber(Index).Description,ColumnNumber(Index).ColWidth,False)[/COLOR]
Next
For ID = 0 To 5
Table1.AddRow(ID,"","")
Next
End Sub