pfc_Save事件返回值的含义

 
返 回 值
    
    
1
成功
 
0
没有修改
 
-1
接收文本错误
pfc_Save事件终止
-2
pfc_UpdatesPending执行错误
pfc_Save事件终止
-3
校验规则错误
pfc_Save事件终止
-4
pfc_PreUpdate执行错误
pfc_Save事件终止
-5
pfc_BeginTran执行错误
pfc_Save事件终止
-6
pfc_Update执行错误
pfc_EndTranpfc_DBError两个事件完成,事件pfc_PostUpdate还没有执行
-7
pfc_EndTran执行错误
pfc_PostUpdate事件没有执行
-8
pfc_PostUpdate执行错误
 
-9
pfc_UpdatePrep执行错误
pfc_Save事件终止
 
 
pfc_Save可能触发的事件描述

    
    
    
pfc_AcceptText
窗口上的自修改对象执行AcceptText函数
w_masterof_AcceptText函数调用该事件
pfc_UpdatesPending
判断哪个自修改对象有可修改内容
w_masterof_UpdatesPending函数调用该事件
pfc_Validation
对有修改内容的自修改对象进行校验
PFC的数据窗口对象可以使用of_Validation函数调用该事件
pfc_UpdatePrep
空用户事件,可以编写自己的脚本来扩展逻辑单元的功能
当窗口作为一个自修改对象时才有必要扩充该事件
pfc_PreUpdate
空用户事件,可以编写脚本提供附加的校验规则
返回1表示执行成功,返回其他任意值就可以终止pfc_Save事件的执行
pfc_BeginTran
空用户事件,可以编写脚本来和数据库系统建立联结
同上
pfc_Update
为所有自修改对象执行数据库修改操作
对于非自修改对象可以扩充该事件来修改对象。返回1表示执行成功,返回-1表示执行失败。如果返回-1,通过调用函数of_SetDBErrorMsg来创建错误错误消息,这时pfc_DBError事件将自动显示错误信息
pfc_EndTran
空用户事件,可以编写脚本来提交或者回退对数据库的修改
根据从其他脚本传递过来的参数来决定是提交还是回退。当然,在其他地方也可以使用提交或者回退语句,但是这里应该是最合适的地方
pfc_DBError
修改错误时该事件显示相应的错误信息
如果PFC的错误服务启动则调用of_Message来显示错误信息,否则调用MessageBox函数显示错误信息
pfc_PostUpdate
复位所有已修改对象的修改标记
当对pfc_Save事件进行扩充处理其他控件时一定要扩充该事件来复位它们的修改标记
运行效果 http://hi.csdn.net/attachment/201012/9/0_1291865794j998.gif ************************************************************************* PowerBuilder Foundation Class Library Version 9.0 R E L E A S E N O T E S Copyright ?1996-2003 Sybase, Inc. and its subsidiaries. All rights reserved. ************************************************************************* Last Updated: January 17, 2003 ************************************************************************* Please take a few minutes to review this file for fixes that were made in PowerBuilder 8.0.2 and 9.0. ************************************************************************* BUG FIXES IN PFC 9.0 ************************************************************************* CR300376 Object: pfc_n_cst_fileSrv, pfc_n_cst_fileSrvwin32 Method: OfGetDiskSpace Fix: Method returned a negative number when the calculated amount of free disk space exceeded 2 gigabytes. Added new method of_GetDiskSpaceEx that takes decimals as arguments instead of longs. of_GetDiskSpace will be obsolete in a future release. ************************************************************************* BUG FIXES IN PFC 8.0.2 ************************************************************************* PFC.PBR CR256529 Fix: The PFC.PBR file can be used to copy bitmaps and dynamically referenced DataWindow objects into the executable file for deployment. The following bitmap files that were removed from PFC have now been removed from the PFC.PBR file: details.bmp, helptop.bmp, largeico.bmp, listv.bmp, and smallico.bmp. ======================================================== PFC DataStore CR261992 Object: pfc_u_ds Method: pfc_print/pfc_printdlg Fix: Changed the return code test to check for 1 on success, otherwise there is an error or the user cancelled. Fix: Set the
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值