<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
</head><body>
<p style="margin: 0px;"><span><span></span></span></p>
<p style="margin: 0px; "></p>
<div style="margin: 5px 0px;">
<div>
<br/>ik <idokan@gmail.com> hat am 19. Juni 2012 um 14:22 geschrieben:
<br/>
<br/>
<div style="position: relative;">
<blockquote style="margin-left: 0px; padding-left: 10px; border-left: 1px solid blue;">
<div dir="ltr">
Hello,
<br/>
<br/>Is there a way to tell in run-time that a specific function/procedure should belong to a class ?
<br/>
<br/>For example, let's say I have the following class:
<br/>
<br/>Type
<br/> TTest = class
<br/> procedure Foo;
<br/> end;
<br/>
<br/>And I have also:
<br/>
<br/>procedure Bar;
<br/>...
<br/>end;
<br/>
<br/>Is there a way to make at some point of my code execution, that Bar will be a method of TTest ?
<br/>Or maybe for a specific instance of TTest ?
</div>
</blockquote>
</div>
</div>
</div>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">Do you mean that TTest.MethodAddress('bar') should return your Bar?</p>
<p>Yes. </p>
<p> </p>
<p>Mattias</p>
<p> </p>
<p> </p>
</body></html>