在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
点击章节练习: var tmplm:Tlistboxitem; begin dm.FDQTMP.SQL.Clear; dm.FDQTMP.SQL.Add('select GSESSON from TSquestions where GLESSON=:ggl group by GSESSON'); dm.FDQTMP.Params.ParamByName('ggl').Value:=Qlesson; dm.FDQTMP.Open; dm.FDQTMP.First; ListBoxSesson.Items.Clear; ListBoxSesson.BeginUpdate; while not dm.FDQTMP.Eof do begin tmplm:=Tlistboxitem.Create(nil); tmplm.ItemData.Text:=dm.FDQTMP.FieldByName('GSESSON').AsString; tmplm.ItemData.Bitmap:=ImageYuan.Bitmap; tmplm.Parent:=ListBoxSesson; dm.FDQTMP.Next; end; ListBoxSesson.EndUpdate; popsesson.PlacementTarget:=Imagetop; popsesson.Placement:=TPlacement.plBottomCenter; popsesson.IsOpen:=true;
procedure TFmode.ListBoxSessonChange(Sender: TObject); begin //选择章节 Qsesson:=ListBoxSesson.Items[ListBoxSesson.ItemIndex] ; popsesson.IsOpen:=false; if length(Qsesson)<>0 then begin Application.CreateForm(TFAnsOne, FAnsOne); {$IFDEF Android} FAnsOne.show; {$ENDIF} {$IFDEF IOS} SHOWMESSAGE('下面开始第'+Qsesson+'章练习'); FAnsOne.show; {$ENDIF} {$IFDEF MSWINDOWS} FAnsOne.showmodal; {$ENDIF} end; end;
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论