I FOUND IT!!!
For whatever reason I had the following order at the start of the unit..
type
....
....
private
....
....
const
....
....
public
....
....
end;
Something in me said this didn't look/feel right so I changed it to
type
....
....
private
....
...
public
....
....
end;
const
....
....
and all is fine now.
Exactly why I had the const in the private section, I can only specualte that I was trying to make the consts private......
FWIW, this is the const declaration..
const
sNoSvcEmail : string = 'There is no Service Email Address recorded in the Company data!';
sNoCorpEmail : string = 'There is no Corporate Email Address recorded in the Company data!';
sPrintMsg : string = 'The Job Ticket not in the correct status for this print function!';
// The following are for IndexOrd.
aIndexOrd : array of string = ['Job #', 'Customer Ref.', 'Job Status', 'Account Code', 'Job Type', 'MSN', 'ESN', 'User ID', 'Account #', 'Customer #',
'Service #'];
aSortOrder : array of string = ['JobNo', 'CustomerRef', 'JobStatus', 'AccountCode', 'JobType', 'MSN', 'ESN', 'UserID', 'AccountNo', 'CustomerNo',
'ServiceNo'];
Anyway, all good now, I can add components again to my hearts content.
Thank you all for your interest and suggestions/contributions. Very much appreciated.
Regards,
Ian