CurrentItem property

Applies to
TQDB, TQDBItem, TQDBView

Declaration
property CurrentItem : string;

Description
The CurrentItem property contains the current item as a Delphi string, e.g.:

   if Q.ExactMatch('Marsh') then Edit1.Text:=Q.CurrentItem;

Since Delphi strings can contain any character (even #0) they can be used to hold any kind of item:

   bmp:=TFileStream.Create('test.bmp',fmOpenReadWrite);
   SetString(s,bmp.Size);
   bmp.Read(s[1],Length(s));
   Q.CurrentItem:=s;

N.B. This technique is of limited use in D16 because of the 255 character limit on strings.

See also Items and ItemsByKey.

Run-time only