Markus Ostenried
2003-04-11 19:05:02 UTC
Hi all,
I want to declare a multi-dimensional array of constant records as a constant:
type
TTMD_Type = (
tmdCliMemo,
tmdRezMemo,
tmdTermMemo
);
TTifRelDef = record
RelationType: String;
TableName: String;
KeyField: String;
end;
const
TifRelDefs: Array[TTMD_Type] of Array of TTifRelDef = (
???
);
With each value of TTMD_Type I want to access another array containing the
records.
I tried replacing the ???-line with this text:
( // Array for tmdCliMemo
(RelationType: 'RECIPIENT', TableName: 'CLIENTEN', KeyField:
'ID_CLIENT'),
(RelationType: 'SENDER', TableName: 'MITARBEITER', KeyField:
'ID_MITARBEITER')
),
( // Array for tmdRezMemo
(RelationType: 'SUBJECT', TableName: 'CLIENTEN', KeyField: 'ID_CLIENT'),
(RelationType: 'SUBJECT', TableName: 'REZEPTE', KeyField: 'ID_REZEPT')
),
( // Array for tmdTermMemo
(RelationType: 'SUBJECT', TableName: 'TERMINE', KeyField: 'ID_TERMIN')
)
but it didn't work (undeclared identifier: 'RelationType'). Can anybody
help me, please ?
Thanks,
Markuss
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/xaxhjB/hdqFAA/VygGAA/i7folB/TM
---------------------------------------------------------------------~->
Forget the BDE - Use TinyDB for Delphi!
http://www.delphicollection.com/public/TinyDB.htm
---------------------------------------------------------------
Unsubscribe:delphi-programming-***@yahoogroups.com
List owner:delphi-programming-***@yahoogroups.com
---------------------------------------------------------------
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
I want to declare a multi-dimensional array of constant records as a constant:
type
TTMD_Type = (
tmdCliMemo,
tmdRezMemo,
tmdTermMemo
);
TTifRelDef = record
RelationType: String;
TableName: String;
KeyField: String;
end;
const
TifRelDefs: Array[TTMD_Type] of Array of TTifRelDef = (
???
);
With each value of TTMD_Type I want to access another array containing the
records.
I tried replacing the ???-line with this text:
( // Array for tmdCliMemo
(RelationType: 'RECIPIENT', TableName: 'CLIENTEN', KeyField:
'ID_CLIENT'),
(RelationType: 'SENDER', TableName: 'MITARBEITER', KeyField:
'ID_MITARBEITER')
),
( // Array for tmdRezMemo
(RelationType: 'SUBJECT', TableName: 'CLIENTEN', KeyField: 'ID_CLIENT'),
(RelationType: 'SUBJECT', TableName: 'REZEPTE', KeyField: 'ID_REZEPT')
),
( // Array for tmdTermMemo
(RelationType: 'SUBJECT', TableName: 'TERMINE', KeyField: 'ID_TERMIN')
)
but it didn't work (undeclared identifier: 'RelationType'). Can anybody
help me, please ?
Thanks,
Markuss
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/xaxhjB/hdqFAA/VygGAA/i7folB/TM
---------------------------------------------------------------------~->
Forget the BDE - Use TinyDB for Delphi!
http://www.delphicollection.com/public/TinyDB.htm
---------------------------------------------------------------
Unsubscribe:delphi-programming-***@yahoogroups.com
List owner:delphi-programming-***@yahoogroups.com
---------------------------------------------------------------
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/