🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.basm
1 messages
1 total messages Started by Matthias Sat, 15 Jan 2005 13:04
RTTI and GetProp
#138
Author: Matthias
Date: Sat, 15 Jan 2005 13:04
27 lines
1332 bytes
Hi,

I have troubles calling the GetProc Method of a property manually. As
far as I found out, the pointer is not a object method pointer, but
I've no clue how to call it.


var
  GetString : TMyGetString;
begin
  PropInfo := GetPropInfo(self, 'Name');
  @GetString:=@PropInfo^.GetProc;
  GetString; <-- this one results in an access violation.
end;

Finally I want to be able to change the get-Method. But this doesn't
work either.

Even assigning   

 PropInfo^.GetProc:=PropInfo^.GetProc;

raises an access violation.

Any ideas? Tanks for your suggestions!

Matt
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads