[View Borland Home Page][View Product List][Search This Web Site][View Available Downloads][Join Borland Online][Enter Discussion Area][Send Email To Webmaster]

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.
Trademarks & Copyright © 1998 Borland International, Inc.