GetClass does not work after using TsiLang-Components

General questions and announcements will be posted here.
Post Reply
SabrinaK
Posts: 1
Joined: Wed Jun 22, 2016 12:52 pm

GetClass does not work after using TsiLang-Components

Post 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.
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post 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?
Best regards,
Igor Siticov.
Post Reply