I want to create a dialog from current form class, and expect to get back a value from the dialog.
This is sample coding.
with TFormClass(FindClass('Tf_dialog_partner')).Create(Application) do
try
ShowModal;
Value := DialogPublicVar;
except
Free;
end;
DialogPublicVar is a public variable of Tf_dialog_partner (TForm's descendant) class, for right now in my coding this current class doesn't use the Tf_dialog_partner's unit in the USES clause, I just use FindClass function, i can create a new form just fine.
This coding is error because this current class is not aware of Tf_dialog_partner's attributes, so it doesn't recognize DialogPublicVar.
Please help, how to make this current class to aware of DialogPublicVar.
Thanks everyone.