 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
luiz@luizantonio.com Guest
|
Posted: Thu Sep 08, 2005 9:12 pm Post subject: Calling method at runtime |
|
|
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
|
Posted: Fri Sep 09, 2005 7:33 pm Post subject: Re: Calling method at runtime |
|
|
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 |
|
 |
|
|
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
|
|