Infopower -getting typecast invalid on using wwdbcombobox in dll
Hi ,
My team is working on a migration project from Delphi 4 to Delphi 10.4 .
We have taken a wwdbcombobox on a form and passed as a parameter to method of dll.When trying to assign/ retrieve wwdbcombobox.sort value, getting an invalid typecast error.
We are stuck in this issue so please help us with this issue so that we can move forward.
Please refer to below for reference:
//On button click of form
procedure TForm1.Button1Click(Sender: TObject);
begin
DllExamFact.initliste(wwDBComboBox1);
end;
//Initliste method defined in dll
procedure TDllExamFact.InitListeAgences(const pwwDbComboBoxAgence:TwwDbComboBox);
var
bsort:boolean;
begin
bsort:=pwwDbComboBoxAgence.Sort; { Getting error:Invalid class typecast}
end;
Please sign in to leave a comment.
Comments
1 comment