Solved

Fields, Objects or Datamembers ?

Posted on 2001-07-03
6
251 Views
Last Modified: 2010-04-06
Form = (TForm)

    Edit:TEdit;
    Button:TButton;
    ...
    ...

   Can any one explain to me what are terms used to call the Edit, and Button found above the code.. are these called fields... are these called datamembers or simply objects...So when you say Edit:TEdit, does this mean that there is an object inside a class? I am confused about these can any one help me please... and in addition to that can any one please explain to me the Class and Object structures... please give an example..
0
Comment
Question by:aerokevs
6 Comments
 
LVL 8

Expert Comment

by:Cesario
ID: 6247674
Hi aerokevs,


Edit,Button are the Fields of the Form Object.
Edit and Button are objects.

Any Object can contains many other Objects ;-)

Best Regards

Cesario
0
 
LVL 3

Expert Comment

by:Stefaan
ID: 6248242
Hi,

Generally speaking the following terms are often used :

Type
  TForm1 = Class( TForm )
    Edit : TEdit;
    Button : TButton;
  private
    FText : String;
    procedure SetText( const Value : String );
  protected
    Procedure DoSomething;
  public
  published
    Proprety Text : String read FText write SetText;
  ...

We are speaking of a class if we are talking about the TForm1, which is the declaration of the TForm1, when we instantiate an object of the TForm1 class then we call it an object.

Variables used in the class are called Fields / Members.  Except if they are used as properties then we call it a property.  So FText is a Field / Member of the TForm1 class, but Text is a property of the TForm1 class.

A procedure like DoSomething is called a method.  When that method is used to Set or Get the value of a property then we call it the Property Setter or Getter method.

That is in short some of the terms that are very commonly used in OO and Delphi.

Best regards,


Stefaan
0
 

Author Comment

by:aerokevs
ID: 6251571
Stefaan,

      what is then Edit:TEdit, Button:TButton are these fields or objects... or a member variable...
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 3

Accepted Solution

by:
Stefaan earned 4 total points
ID: 6251582
Hi,

Well the terms field or member are used for the same thing.  


   Edit : TEdit


means that you declare a field or member called edit which is of the class TEdit.

Best regards,


Stefaan
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 6331758
It's time to clean up this topic area and that means taking care of this question. Your options at this point are:
 
1. Award points to the Expert who provided an answer, or who helped you most. Do this by clicking on the "Accept Comment as Answer" button that lies above and to the right of the appropriate expert's name.
 
2. PAQ the question because the information might be useful to others, but was not useful to you. To use this option, you must state why the question is no longer useful to you, and the experts need to let me know if they feel that you're being unfair.
 
3.  Ask Community Support to help split points between participating experts.  Just comment here with details.
 
4.  Delete the question because it is of no value to you or to anyone else.  To use this option, you must state why the question is no longer useful to you, and the experts need to let me know if they feel that you're being unfair.
 
If you elect for option 2, 3 or 4, just post comment with details here and I'll take it from there.  We also request that you review any other open questions you might have and update/close them.  Display all your question history from your Member Profile to view details.
 
PLEASE DO NOT AWARD THE POINTS TO ME.
 
____________________________________________
 
 
 
Hi Experts:
 
In the event that the Asker does not respond, I would very much appreciate your opinions as to which Expert ought to receive points (if any) as a result of this question.  Likewise, you can also suggest that I PAQ or delete the question.
 
Experts, please do not add further "answer" information to this question.  I will be back in about one week to finalize this question.
 
Thank you everyone.
 
Moondancer :)
Community Support Moderator @ Experts Exchange
 
P.S.  Engineering has been advised about the error in the comment date/time sort order.
0
 

Author Comment

by:aerokevs
ID: 6421231
I SEE IT NOW CLEARLY... THANKS
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now