BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Calling method at runtime

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi ObjectPascal
View previous topic :: View next topic  
Author Message
luiz@luizantonio.com
Guest





PostPosted: Thu Sep 08, 2005 9:12 pm    Post subject: Calling method at runtime Reply with quote



Hello,

I have a textfile like this:
-----------------------------------
ProcedureDoTest Param1 Param2
-----------------------------------

To call the method i'm using:
--------------------------
if Name='ProcedureDoTest' then
ProcedureDoTest(Param1, Param2)
else if name....
--------------------------------


I want to call this method automatic, Without comparing strings.

Is there any way do tho this ?

I'm thinking in use functions pointers.

Thanks.

Back to top
Riki Wiki
Guest





PostPosted: Fri Sep 09, 2005 7:33 pm    Post subject: Re: Calling method at runtime Reply with quote



On 8 Sep 2005 14:12:12 -0700, [email]luiz (AT) luizantonio (DOT) com[/email] wrote:

Quote:
I want to call this method automatic, Without comparing strings.

Is there any way do tho this ?

Olá Luiz

You can call published methods by name. See here:

http://www.jansfreeware.com/articles/delphi-call-by-name.html

Beside this, this news group do no longer exist. Take a look here:

<http://tinyurl.com/8m5nw>
which links to
<http://delphi.wikicities.com/wiki/Delphi_Newsgroups>

Adeus Riki Wiki

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi ObjectPascal All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.