Dann habe ich versucht, es mit einem Array zu tun, aber dort sagt es mir inkompatible Typen hinter dem Wort
write.
Code:
type TBasicSettings = class
private
fGroups: array[0..1] of TBasicGroupSettings;
function getA(Index: byte): TBasicGroupSettings;
function getB(Index: byte): TBasicGroupSettings;
procedure setA(Index: byte; O: TBasicGroupSettings);
procedure setB(Index: byte; O: TBasicGroupSettings);
public
is_scroll_vertical: boolean; // scroll_type=vertical
is_image_direction_up: boolean; // image_direction
is_search_colors_HSL: boolean;
check_files_exist_A: boolean;
check_files_exist_B: boolean;
RAM_disk: string;
RAM_free: LongWord; // v MB
start_name_A: string;
// A: TBasicGroupSettings;
// B: TBasicGroupSettings;
fps: byte;
scroll_max_shift: integer;
// property basic[G:String] TBasicGroupSettings read Get_A write Set_A;
property A: TBasicGroupSettings Index 0 read GetA write SetA;
property B: TBasicGroupSettings Index 1 read GetB write SetB;
end;