Delphi application client

18
3848

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: World of translation
RATE PUBLICATION
5 (votes: 0)

Комментарии:

  • avatar
    navim - 21.12.2012, 20:24
    Good info. Very helpful for beginers.
  • avatar
    Greta - 14.01.2013, 19:13
    Interesting instruction, i will try it.
  • avatar
    Holly - 5.03.2013, 07:59
    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.
  • avatar
    Jecky - 5.03.2013, 08:30
    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.
  • avatar
    Jully - 5.03.2013, 09:51
    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
  • avatar
    Din - 29.03.2013, 11:20
    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.
  • avatar
    Jane - 30.03.2013, 04:03
    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.
  • avatar
    Tit - 30.03.2013, 04:28
    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!
  • avatar
    Dereck - 2.04.2013, 15:23
    This definitely answered my challenge, thank you!
  • avatar
    TitTitGeall - 20.04.2013, 20:03
    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
  • avatar
    TitTitGeall - 20.04.2013, 21:05
    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
  • avatar
    TitTitGeall - 20.04.2013, 21:32
    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
  • avatar
    Juggipsyporgo - 25.04.2013, 02:51
    Your location is valueble for me. Thanks! shoes with red soles
  • avatar
    actishhic - 9.05.2013, 23:48
    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
  • avatar
    nagunindink - 16.05.2013, 11:08
    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
  • avatar
    actishhic - 16.05.2013, 20:41
    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
  • avatar
    pypeFolillVep - 20.05.2013, 02:40
    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
  • avatar
    actishhic - 20.05.2013, 05:12
    Your location is valueble for me. Thanks! snapback hats
Go UP