Borland®
Shop
Products Downloads Services Support Partners News & Events Company Community

BDE API Examples (DbiOpenLDList)

Creates an in-memory table containing a list of available language drivers.

Return all language driver information for the system

This example uses the following input:
GetLdList(Memo1.Lines);
The function is defined as follows:
procedure GetLdList(Lines: TStrings);

var

  hCur: hDBICur;

  LD: LDDesc;



begin

  // get a cursor to the in-mem table containing language driver information...

  Check(DbiOpenLdList(hCur));

  try

    while DbiGetNextRecord(hCur, dbiNOLOCK, @LD, nil) = DBIERR_NONE do

    begin

      // add the name, code page, and description to the result...

      Lines.Add('Name: ' + LD.szName + '  Code Page: ' + IntToStr(LD.iCodePage));

      Lines.Add('    Description: ' + LD.szDesc);

    end;

  finally

    Check(DbiCloseCursor(hCur));

  end;

end;

Back to BDE API Reference Page


DISCLAIMER: You have the right to use this technical information subject to the terms of the No-Nonsense License Statement that you received with the Borland product to which this information pertains.
 
Site Map Search Contact