H
handsome1234
Unregistered / Unconfirmed
GUEST, unregistred user!
SelectPrintItem_Frm.ShowFormSelectPrintItem(Temp_Table1,'rk',StrType,StrTypeDB);//调用时,StrType我用debug看了StrType的Text有值
function ShowFormSelectPrintItem(Dataset:TDataset;Kindtring;StrType:TStringList;StrTypeDB:TStringList): Boolean ;
begin
StrType:= TStringList.Create;
StrTypeDB:=TStringList.Create;
SelectPrintItem_Frm.Kind:=Kind;
SelectPrintItem_Frm.StrType:=StrType;//这里的StrType居然没有值????很难理解阿?
SelectPrintItem_Frm.StrTypeDB:=StrTypeDB;
FormSelectPrintItem:=TFormSelectPrintItem.Create(Application);
FormSelectPrintItem.ShowModal;
FormSelectPrintItem.Release;
end;
function ShowFormSelectPrintItem(Dataset:TDataset;Kindtring;StrType:TStringList;StrTypeDB:TStringList): Boolean ;
begin
StrType:= TStringList.Create;
StrTypeDB:=TStringList.Create;
SelectPrintItem_Frm.Kind:=Kind;
SelectPrintItem_Frm.StrType:=StrType;//这里的StrType居然没有值????很难理解阿?
SelectPrintItem_Frm.StrTypeDB:=StrTypeDB;
FormSelectPrintItem:=TFormSelectPrintItem.Create(Application);
FormSelectPrintItem.ShowModal;
FormSelectPrintItem.Release;
end;