SUBSCRIBE TO NEWS
Subscription by Email - news

Discard subscription
61

Delphi application client

2012
5
Dec.
Admin
viewsViews: 1388         commentsComments: 18

Delphi

In the object inspector in the Caption property of the Forml form lets enter a name of the form.
Note that the constant data base file name is specified in the Data BaseName property, component Data Base complicates transfer to other computers. So, lets put Panel component from the Standard tab in the top part of the form and lets place the the following components from the Standard tab:

  • Label (in Caption property enter " data base file");
  • Edit (to enter the path to the data base; delete the information in the Text property, in the Name property type in Ed Data BaseName);
  • Button (to activate dialogue; selecting the data base file; Caption Name - BtOpen);
  • Button (to initiate the update information obtained from the data base; Сарtion - «Update»; Name - BtRefresh).

DelphiAdditionally, you should place on the form (below the Panel component) component-dialog base name selection - OpenDialog from the Dialogs tab (lets rename OpenDialogl component to OpenDialog).
Set on the form (below the Panel component) TDBGrid components ( DataControis tab), DataSourse ( Data Access tab). Accordingly, components in the program will be named DBGridl and DataSourcel.
Save the project (the tool ).

DelphiNow you need to join a DBGridl table with DateModuie components. Make active the window of main form of the project, select the menu File - UseUnit and in the appeared window select the desired module (unit2). Only now in the DataSet property of the DataSourse 1 component we can set the name of our "qomain" component from the dropdown list. In DBGridl component set the property  DataSourse in DataSourcel.

In order, in the fields of the column names of the DBGridl component, inscriptions displayed in Russian, you have to perform the following steps:

  1. Highlight DBGridl component, select a property Columns in the object inspector. When you click on the ellipsis button opens the editor of columns;
  2. Create the necessary number of the objects of TColumn class (by the number of columns in a Otd table);
  3. Highlight the first object of TColumn. In the object inspector in the FieldName property of the specified object open the list and select the appropriate field of the Otd table (we recall that in the SQL property of "qo main" component, associated with DBGridl component, previously was entered query: select all fields from Otd table);
  4. Click on the "+" before the Title property. In the opened Caption property, enter the desired name of the column (number, name, or budget). (In the example, the column name in Russian is duplicated by real name of table field, as used interface of insertion and removal envisages compilation of logical conditions to select table records);
  5. In the Alignment property inside the Title property, choose taCenter from the drop-down list;
  6. Perform 3-5 steps with all other objects of TColum.
Author:
RATE PUBLICATION
0   (votes: 0)
Read more with:
Certification ISO 22000
Certification ISO 22000
ISO 22000 (HACCP) – is a collection of international standards in the...
2014
25
May
Admin
Views: 488 Comments: 0
Technical translation: what is it?
Technical translation: what is it?
##the Most common type of translation today is technical. These transfers are...
2016
1
June
Admin
Views: 130 Comments: 0
Comments (18)
navim Posted
21 Decemb. 12
avatar
Good info. Very helpful for beginers.
Greta Posted
14 January 13
avatar
Interesting instruction, i will try it.
Holly Posted
05 March 13
avatar
Can I just say what a relief to come across an individual who truly knows what theyre talking about online. You definitely know easy methods to bring an problem to light and make it crucial. Additional individuals really need to read this and know this side of the story. I cant believe youre not much more popular simply because you unquestionably have the gift.
Jecky Posted
05 March 13
avatar
You created some decent points there. I looked on the web for the concern and discovered most individuals will go together with along with your web page.
Jully Posted
05 March 13
avatar
An interesting discussion is worth comment. I feel that you simply should certainly write alot more on this topic, it could not be a taboo topic but typically folks are not sufficient to speak on such topics. To the next. Cheers
Din Posted
29 March 13
avatar
This internet internet site is genuinely a walk-through for all of the information you wanted about this and didn't know who to ask. Glimpse here, and you will unquestionably discover it.
Jane Posted
30 March 13
avatar
Can I just say what a relief to obtain somebody who really knows what theyre talking about on the net. You certainly know how to bring an problem to light and make it very important. Much more individuals have to read this and know this side of the story. I cant believe youre not additional well known because you certainly have the gift.
Tit Posted
30 March 13
avatar
This will be the appropriate blog for any individual who desires to find out about this subject. You comprehend so considerably its practically challenging to argue with you (not that I really would want?-HaHa). You undoubtedly put a brand new spin on a subject thats been written about for years. Wonderful stuff, just very good!
Dereck Posted
02 April 13
avatar
This definitely answered my challenge, thank you!
TitTitGeall Posted
20 April 13
avatar
Youre so cool! I dont suppose Ive read anything like this ahead of. So nice to find somebody with some original thoughts on this subject. realy thank you for starting this up. this internet site is something which is needed on the internet, someone with a small originality. beneficial job for bringing some thing new to the internet! Nike Free Run 2 til billig
TitTitGeall Posted
20 April 13
avatar
I'd have to check with you here. Which isn't some thing I normally do! I take pleasure in reading a post that can make many people think. Also, thanks for permitting me to comment! billig Nike Free Haven 3.0
TitTitGeall Posted
20 April 13
avatar
The next time I read a weblog, I hope that it doesnt disappoint me as much as this 1. I mean, I know it was my choice to read, but I actually thought youd have some thing intriguing to say. All I hear is actually a bunch of whining about some thing that you could fix if you ever werent too busy searching for attention. billig Nike Free 3.0
Juggipsyporgo Posted
25 April 13
avatar
Your location is valueble for me. Thanks! shoes with red soles
actishhic Posted
09 May 13
avatar
It's hard to get knowledgeable persons on this subject, but you sound like you know what you're talking about! Thanks michael kors clearance
nagunindink Posted
16 May 13
avatar
Aw, this was a seriously nice post. In thought I would like to put in writing like this additionally - taking time and actual effort to make a particularly wonderful article?- but what can I say?- I procrastinate alot and by no indicates seem to get something accomplished. red bottom heels
actishhic Posted
16 May 13
avatar
An impressive share, I just given this onto a colleague who was performing a little analysis on this. And he in reality bought me breakfast considering that I found it for him.. smile. So let me reword that: Thnx for the treat! But yeah Thnkx for spending the time to discuss this, I feel strongly about it and really like reading alot more on this topic. If possible, as you turn into expertise, would you mind updating your blog with a lot more details? It is highly valuable for me. Large thumb up for this weblog post! michael kors kids
pypeFolillVep Posted
20 May 13
avatar
It is challenging to uncover knowledgeable individuals on this topic, but you sound like you know what you're talking about! Thanks new era hats
actishhic Posted
20 May 13
avatar
Your location is valueble for me. Thanks! snapback hats

To add comment, please, authorize.
Authorize using Yandex Google Вконтакте Mail.ru Twitter