Solved

methods

Posted on 2001-06-13
4
163 Views
Last Modified: 2010-04-06
can anyone explain to me what is a method... in visual language programming
0
Comment
Question by:aerokevs
  • 2
4 Comments
 
LVL 1

Expert Comment

by:MaxSCZ
ID: 6189792
Hi,

method = function or procedure of a object

bye Max
0
 
LVL 22

Accepted Solution

by:
Mohammed Nasman earned 5 total points
ID: 6189861
Hello

  Read this page and you will have some info about methods

http://www.delphi-dolphin.com/tutorials.php?119

Mohammed
0
 
LVL 17

Expert Comment

by:geobul
ID: 6190727
Hi,
A method is a procedure or function associated with a class. A call to a method specifies the object (or, if it is a class method, the class) that the method should operate on.

Declaration:

type
  TMyClass = class(TObject)
     ...
    procedure DoSomething;
     ...
  end;

var
  MyObject : TMyClass;

A defining declaration for DoSomething must occur later in the module:

procedure TMyClass.DoSomething;
begin
 ...
end;

Usage:

MyObject := TMyClass.Create;
...
MyObject.DoSomething;
...
MyObject.Free;


Regards, Geo
0
 
LVL 22

Expert Comment

by:Mohammed Nasman
ID: 6236160
Woow, you gave me alots of points ;)
0

Featured Post

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Print Graphic and Text to Epson TM-T88v 12 260
oracle global variables 4 69
How to define IfThen functions in one common unit? 4 54
firemonkey keyboard covers the controls 1 26
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

810 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