易截截图软件、单文件、免安装、纯绿色、仅160KB

delphi 2009 SQLStoredProc执行错误说没参数?

    SQLStoredProc.StoredProcName:='[dbo].[UpDIMS]';
    SQLStoredProc.ParamByName('@Mindex').AsInteger:=mInfo.Mindex;
    SQLStoredProc.ParamByName('@Longitude').AsInteger:=mInfo.Longitude;
    SQLStoredProc.ParamByName('@Latitude').AsInteger:=mInfo.Latitude;
    SQLStoredProc.ParamByName('@Angle').AsInteger:=mInfo.Angle;
    SQLStoredProc.ParamByName('@Speed').AsInteger:=mInfo.Speed;
    SQLStoredProc.ParamByName('@Time').AsInteger:=mInfo.Time;
    SQLStoredProc.ExecProc;
存储过程如下:
    ALTER PROCEDURE [dbo].[UpDIMS]
-- Add the parameters for the stored procedure here
    @Mindex int,
    @Longitude int,
    @Latitude int,
    @Angle int,
    @Speed int,
    @Time datetime
AS
BEGIN
--判断db_info中是否存在记录
  if(select count(*)
    from db_info where Mindex=@Mindex)>0
    update db_info set Longitude=@Longitude,Latitude=@Latitude,Speed=@Speed,Angle=@Angle,[Time]=@Time where Mindex=@Mindex
  else
    insert into db_info values(@Mindex,@Longitude,@Latitude,@Speed,@Angle,@Time)
  insert into db_info_his values(@Mindex,@Longitude,@Latitude,@Speed,


相关问答:

求一段delphi代码转C#代码,急用,可人民币支付,谢谢

急用。联系QQ:8775262,谢谢。
需要进行DllImport的地方直接写DLLImport.方法名。
如:DLLImport.GlobalAddAtom(……);
文件:UShare.pas
Delphi(Pascal) code:

unit UShare;
interface
uses Windows, Me ......

delphi 进销存时入库数量和出库数量间的关系

我在出库窗口写了个方法:ADOQueryBill 的bNum 字段的OnValidate方法 实现的是出库数量不能大于入库的数量,否则就重新输入数量,以下是我的代码:
procedure TFrmStockOut.ADOQueryBillbNum_Validate(Sender: TFie ......

delphi activx 的问题 110分

我在网上找了个关于IEBHO的代码,然后按照哪个设置了,后来运行的时候出现 
[错误] Unit1.pas(15): Undeclared identifier: 'GetTypeInfoCount'
[错误] Unit1.pas(15): Undeclared identifier: 'GetTypeInfo ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号