Page 1 of 1

GetClass does not work after using TsiLang-Components

Posted: Wed Jun 22, 2016 1:12 pm
by SabrinaK
Hello everybody,

At first I register the class TUniFrame1 with

RegisterClass(TUniFrame1);

After this I use the following code to get an instance of this class:

procedure TMainForm.UniButton1Click(Sender: TObject);
var
AClass: TPersistentClass;
begin
AClass := GetClass('TUniFrame1');
end;

This works exactly how it should. Afterwards there is an instance of TUniFrame1 in AClass.

But as soon as I use a TsiLang-Component (doesn't matter which one) this does not work anymore. From now on GetClass('TUniFrame1') returns nil.

Can somebody help me? This would be great :-)

Thank you.

Posted: Thu Jun 23, 2016 8:54 am
by isiticov
Hello,

What version of TsiLang Components Suite do you use? Does the same happens for you if you use regular TFrame instead of TUniFrame?