Articles   Members Online:
-Article/Tip Search
-News Group Search over 21 Million news group articles.
-Delphi/Pascal
-CBuilder/C++
-C#Builder/C#
-JBuilder/Java
-Kylix
Member Area
-Home
-Account Center
-Top 10 NEW!!
-Submit Article/Tip
-Forums Upgraded!!
-My Articles
-Edit Information
-Login/Logout
-Become a Member
-Why sign up!
-Newsletter
-Chat Online!
-Indexes NEW!!
Employment
-Build your resume
-Find a job
-Post a job
-Resume Search
Contacts
-Contacts
-Feedbacks
-Link to us
-Privacy/Disclaimer
Embarcadero
Visit Embarcadero
Embarcadero Community
JEDI
Links
How to Customize the display of IBObject queries Turn on/off line numbers in source code. Switch to Orginial background IDE or DSP color Comment or reply to this aritlce/tip for discussion. Bookmark this article to my favorite article(s). Print this article
Customizing the display of IBObject queries 25-Aug-02
Category
Database Others
Language
Delphi 2.x
Views
80
User Rating
No Votes
# Votes
0
Replies
0
Publisher:
DSP, Administrator
Reference URL:
DKB
			Author: Tomas Rutkauskas

Customizing the display of IBObject queries

Answer:

If you use IBObjects for your InterBase client application, you can use the 
powerful TIB_Cursor and TIB_Query to modify how your query results will look for 
example in a grid. Take a look at the sample source code below.

Note:
All those settings can be made via the object inspector, but when the SQL property 
is updated at runtime with a new query, some of these properties seem to get wiped 
out. Therefore it's better to set them at run-time in code.
1   
2   begin
3     with TIB_Query1 do
4     begin
5       FieldsVisible.Add('ID=F');
6       FieldsVisible.Add('SLNR=T'); { not really necessary }
7       FieldsCharCase.Add('LAND=UPPER');
8       FieldsDisplayLabel.Add('COMMENTS=Your Comments');
9       FieldsDisplayWidth.Add('COMMENTS=200');
10    end;
11  end;


			
Vote: How useful do you find this Article/Tip?
Bad Excellent
1 2 3 4 5 6 7 8 9 10

 

Advertisement
Share this page
Advertisement
Download from Google

Copyright © Mendozi Enterprises LLC