Hi,
I wrote earlier (Compilation error??) and I had issue removing the include files. My problem was counter altered from 0 after accessing the array.
newcat := cbxCategory.Text ;
catDB[catCnt] := newcat ;
catCnt := catCnt + 1 ;
frmMyDB.StatusBar.Panels.Items[0].Text := 'Category ' + newcat + ' saved.' ;
newcat was included for debugging purpose. If you breakpoint in TfrmMyDB.cbxCategoryKeyUp, catCnt = 0, on first encounter. After executing carDB[catCnt], catCnt value is changed from 0 to >17000. As a result, the system will break on error when catCnt is used.
Included is the bare minimum of the code.
Thanking you in advance... sunTan