T
Tricky
Guest
Can I do what I asked, I suspect not, so Im thinking along the lines:
type my_record_type is
record
name : string(1 to 20);
....
end record my_record;
Basically, I want to be able to give the record name a constant string
when it is delcared like:
CONSTANT my_record : my_record_type := ( name => "Betty Swollocks",
--length only 15, complains unless I pad to 20 chars.
.......)
Or am I just going to have to pad the name with whitespace to make it
up to name'length?
type my_record_type is
record
name : string(1 to 20);
....
end record my_record;
Basically, I want to be able to give the record name a constant string
when it is delcared like:
CONSTANT my_record : my_record_type := ( name => "Betty Swollocks",
--length only 15, complains unless I pad to 20 chars.
.......)
Or am I just going to have to pad the name with whitespace to make it
up to name'length?