DefineClassByRTTI,

Hello,

I am using DefineClassByRTTI to register a helper class. The user does not create an instance just reads data from the instance via properties.

DefineClassByRTTI shows create and free in the
to continue.

TScrMemo shows the free and create in the autocomplete callback. How do I prevent them from showing?

Thanks,

Mark

FYI, not being able to edit a post after a post is made is...confusing. Some other forums allow edits for 10 minutes or so after the post to correct issues. After 10 minutes, no edit. Perhaps I am missing something.

You can use something like this:



var
  C: TatClass;
begin
  C := IDEScripter1.DefineClassByRTTI(TFoo);
  C.MethodByName('Create').Free;
  C.MethodByName('Free').Free;

Excellent, I will give it a try.

Thanks

OK that works.
I have two variables defined in the public section of the class. One is a string, the other an integer.
They both show up in the autocomplete callback as properties (not properties) and the type is missing. But, that is not the issue for me. I do not want these two variables to appear in the autocomplete list. RemoveProperty and PropertyByName do not remove the variable.
Ideas?

RemoveProperty works here. Can you send us a sample project that reproduces the problem?