我有个财务软件上的问题 我做了一个软件是关于仓库帐簿管理的他里面有个先进先出的功能用sql怎么做到?!~~ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, Grids, DBGrids, DB, ADODB, StdCtrls, DBCtrls, ComCtrls, TFlatProgressBarUnit;type TForm1 = class(TForm) ADOConnection1: TADOConnection; ADOQuery1: TADOQuery; Button1: TButton; DataSource1: TDataSource; DBGrid1: TDBGrid; Label1: TLabel; Label2: TLabel; FlatProgressBar1: TFlatProgressBar; procedure Button1Click(Sender: TObject); procedure ADOQuery1FetchProgress(DataSet: TCustomADODataSet; Progress, MaxProgress: Integer; var EventStatus: TEventStatus); private { Private declarations } public { Public declarations } end;var Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);begin ADOQuery1.Close; ADOQuery1.SQL.Clear; ADOQuery1.SQL.Add('select * from MainTable'); ADOQuery1.Open;end;procedure TForm1.ADOQuery1FetchProgress(DataSet: TCustomADODataSet; Progress, MaxProgress: Integer; var EventStatus: TEventStatus);begin FlatProgressBar1.Position := Progress*100 div maxProgress; label1.Caption := IntToStr(Progress); label2.Caption := IntToStr(maxProgress); Application.ProcessMessages;end;end. 不安装sql,delphi有办法访问数据文件mdf吗?? 我的LISTVIEW不能显示所有要显示的字段 关于调用EXCEL的问题,急!!! RS-232 简单问题,答者有分!!!! 求Delphi程序打包方法,急·· 为什么我的程序这么慢?我用两个SQL控件分别返回了两个数据集,在访问第一个数据集每条记录时都检验第二个数据集的所有记录,不知道为什 问个小问题,关于Tblobfield 如何在MDI窗体中新建子窗体,且只让子窗体显示一次? 怎么评价对一门语言是否精通了呢!有人说很熟,有人说 差不多,到里用什么来评价呢 pazee(耙子),近来接分 只有DCR文件和PAS文件如何安装控件?
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Grids, DBGrids, DB, ADODB, StdCtrls, DBCtrls, ComCtrls,
TFlatProgressBarUnit;type
TForm1 = class(TForm)
ADOConnection1: TADOConnection;
ADOQuery1: TADOQuery;
Button1: TButton;
DataSource1: TDataSource;
DBGrid1: TDBGrid;
Label1: TLabel;
Label2: TLabel;
FlatProgressBar1: TFlatProgressBar;
procedure Button1Click(Sender: TObject);
procedure ADOQuery1FetchProgress(DataSet: TCustomADODataSet; Progress,
MaxProgress: Integer; var EventStatus: TEventStatus);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);
begin
ADOQuery1.Close;
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.Add('select * from MainTable');
ADOQuery1.Open;
end;procedure TForm1.ADOQuery1FetchProgress(DataSet: TCustomADODataSet;
Progress, MaxProgress: Integer; var EventStatus: TEventStatus);
begin
FlatProgressBar1.Position := Progress*100 div maxProgress;
label1.Caption := IntToStr(Progress);
label2.Caption := IntToStr(maxProgress);
Application.ProcessMessages;
end;end.