Solved

methods

Posted on 2001-06-13
4
164 Views
Last Modified: 2010-04-06
can anyone explain to me what is a method... in visual language programming
0
Comment
Question by:aerokevs
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

726 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