Delphi32.com - Home!
| Home/News | Downloads | Forums | D32 Magazine | Resources | Info and Facts |  
 
 Obtaining a list of available BDE language drivers


How can I retreive a list of available BDE language drivers?   

    The following Delphi procedure returns a formatted list of available BDE language drivers. The procedure can be called as shown in the buttonclick method below.

    Add BDE and DBTables to your unit's uses clause.

    procedure GetLdList(Lines: TStrings); var hCur: hDBICur; LD: LDDesc; cnt:integer; begin // get a cursor to the in-mem table containing language // driver information... cnt:=0; check(dbiinit(nil)); Check(DbiOpenLdList(hCur)); try while (DbiGetNextRecord(hCur, dbiNOLOCK, @LD, nil) = DBIERR_NONE) do begin cnt:=cnt+ ; Lines.Add(format('%4d %-6s%- 0s %- 0s%5s %- 0s %- 0s', [cnt,'Name:',LD.szName,'Code Page:',IntToStr(LD.iCodePage), 'Description:',LD.szDesc])); end; finally Check(DbiCloseCursor(hCur)); check(dbiexit); end; end;

    procedure TForm .Button Click(Sender: TObject); begin getldlist(memo .lines); end;

    end.

    7/ 3/99 0: 2:07 AM

     



  << Previous Faq     Complete List     Next Faq >>  



 
 Hits/month  2,500,000+ 
 Downloads
 (Since May 2000)
 7,393,709 
 Total Files  6,023 
 Forum msgs  7,670 
 Articles/FAQs  70+/900+ 
Kylix
Tips n Tricks
FAQs
Knowledge Base
Bug Listings
Articles
Books
Newsgroups
Links
Submissions
Testimonials
Advertising
Contact Us
About Us
Search Amazon:
Top Selling Software at Amazon

| Home/News | Downloads | Forums | Resources | Info and Facts | Testimonials |
  Site Search:
 


Comments/Problems: Webmaster@delphi32.com
Copyright © 1998-2006, Delphi32.com. All rights reserved.
Terms of Use