Hi everyone
I am trying to create a procedure that will use a default string array when no array is provided;
i want the default array to be fairly empty like this:
const empty_array:array[0..0] of string = ('');
when i try to declare the procedure however it doesn't compile..
PROCEDURE INIT (CONST TBL_name:ShortString;CONST DATA_TYPE:TDATATYPE_CATEGORIES;const caps:TStringArray = empty_array );
I'm not sure of the syntax. I've only used default parameter with very simple values before. is it possible to do this or do i need to use overloaded init procedures, one with an array and one without ?