Applies to
TQDB, TQDBItem, TQDBView
Declaration
property Items[itemindex : TItemIndex] : string;
Description
The Items array property offers access to the items of a QDB file as Delphi strings, e.g.:
for n:=1 to Q.Count do
ShowMessage(Q.Items[n-1]);
Since Delphi strings can contain any character (even #0) they can, in principle, be used to hold any kind of data, e.g.:
bmp:=TFileStream.Create('test.bmp',fmOpenReadWrite);
SetString(s,bmp.Size);
bmp.Read(s[1],Length(s));
Q.Items[Q.ItemIndex]:=s;
This technique is of limited use in D16 because of the 255 character limit on strings.
See also CurrentItem and ItemsByKey
Run-time only