![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
pb
满上
这个作者很懒,什么都没留下…
展开
-
sqlserver 取表结构 ,显示自增长字段
sqlserver 取表结构 ,显示自增长字段IS_IDENTITY =1 是自增长。原创 2024-01-24 10:54:35 · 573 阅读 · 0 评论 -
PB 按Excel动态创建对应字段
/asc码其中48~57为0到9十个阿拉伯数字;65~90为26个大写英文字母,97~122号为26个小写英文字母。> 作者: wxk 日期: 2023-12-29 15:11:20。> wf_dw_init(dw_10,18)//18个字段。> 描述: 按excel表格列名,创建对应字段。> 返回: long。原创 2023-12-29 15:15:04 · 732 阅读 · 0 评论 -
python调用pb
按指定句柄找,pb中Handle(this) 得到hwnd=203218。# 给PB开发的应用窗口发送一个参数1,通知执行结束。# PB接收,other事件使用pbm_other,# 按窗口名称获取窗口句柄。# 读取系统窗口列表信息。原创 2023-07-13 11:07:36 · 246 阅读 · 0 评论 -
PB 批量复制列
datawindow 批量复制列long i dw_2.setredraw(false)for i=1 to dw_1.rowcount() dw_2.insertrow(0)nextdwobject dwo_a,dwo_bdwo_a=dw_1.Object.__get_attribute('a25',False)dwo_b=dw_2.Object.__get_attrib...原创 2019-10-09 13:27:31 · 368 阅读 · 0 评论 -
PB 批量复制某几列
global type gf_dw_colcopy from function_objectend typeforward prototypesglobal function long gf_dw_colcopy (powerobject dataobj_sur, powerobject dataobj_tar, string as_cols)end prototypesglobal...原创 2019-10-09 14:22:20 · 627 阅读 · 0 评论 -
pb+vdn 导出指定列的json
global type gf_dw2json from function_objectend typeforward prototypesglobal function string gf_dw2json (powerobject dataobj_sur, string as_cols)end prototypesglobal function string gf_dw2json (...原创 2019-10-10 08:36:38 · 280 阅读 · 0 评论 -
PB split 字符串拆分函数
$PBExportHeader$split.srf$PBExportComments$字符串拆分函数global type split from function_objectend typeforward prototypesglobal function integer split (string assource, string astag, ref string aaret[...原创 2019-10-10 09:25:17 · 1557 阅读 · 0 评论 -
pb replace 替换指定字符
global type gf_replace from function_objectend typeforward prototypesglobal function integer gf_replace (ref string as_source, string as_old, string as_new)end prototypesglobal function intege...原创 2019-10-10 09:26:18 · 2248 阅读 · 0 评论 -
pb uo_datastore
forwardglobal type uo_datastore from datastoreend typeend forwardglobal type uo_datastore from datastoreend typeglobal uo_datastore uo_datastoretype variablesstring is_sqlerrtextend var...原创 2019-10-10 09:29:49 · 359 阅读 · 0 评论 -
pb透明文本控件
forwardglobal type uo_transparent_st from statictextend typeend forwardglobal type uo_transparent_st from statictextinteger width = 288integer height = 72integer textsize = -9integer weight ...原创 2019-10-10 09:30:29 · 223 阅读 · 0 评论 -
pb 获取拼音码
global type gf_pym from function_objectend typeforward prototypesglobal function string gf_pym (string inputstring)end prototypesglobal function string gf_pym (string inputstring);//==========...原创 2019-10-10 09:33:36 · 661 阅读 · 0 评论 -
pb 字符串加密解密
global type gf_pass from function_objectend typeforward prototypesglobal function string gf_pass (string as_pass, integer as_flag)end prototypesglobal function string gf_pass (string as_pass, ...原创 2019-10-10 09:35:05 · 650 阅读 · 0 评论 -
pb 日期相关函数
//====================================================================// 函数: gf_firstday()//--------------------------------------------------------------------// 描述:返回某个月的第一天//------------------...原创 2019-10-10 09:35:48 · 736 阅读 · 0 评论 -
pb 大写人民币
global type gf_money from function_objectend typeforward prototypesglobal function string gf_money (decimal data)end prototypesglobal function string gf_money (decimal data);constant string ls...原创 2019-10-10 09:36:23 · 193 阅读 · 0 评论 -
PB得到运行窗口名
window lw_win lw_win=w_main.getactivesheet()ls_xz=lw_win.title原创 2019-09-03 09:02:24 · 833 阅读 · 0 评论 -
PB获取随机字符串
pb获取随机字符串原创 2024-01-16 14:07:15 · 453 阅读 · 0 评论 -
pb11.5调用系统打印机 Function ulong ShellExecute(ulong hwnd,ref string lpOperation,ref string lpFile,ref st
pb11.5调用系统打印机Function ulong ShellExecute(ulong hwnd,ref string lpOperation,ref string lpFile,ref string lpParameters,ref string lpDirectory,ulong nShowCmd) LIBRARY "shell32.dll" ALIAS FOR "ShellExec原创 2017-10-12 17:20:56 · 508 阅读 · 0 评论 -
PB微信支付【刷卡支付】【扫码支付】【订单查询】
微信支付是集成在微信客户端的支付功能,用户可以通过手机完成快速的支付流程。微信支付以绑定银行卡的快捷支付为基础,向用户提供安全、快捷、高效的支付服务。用户只需在微信中关联一张银行卡,并完成身份认证,即可将装有微信app的智能手机变成一个全能钱包,之后即可购买合作商户的商品及服务,用户在支付时只需在自己的智能手机上输入密码,无需任何刷卡步骤即可完成支付,整个过程简便流畅。对于PowerBuild原创 2017-11-08 16:19:35 · 5204 阅读 · 6 评论 -
PB自动注册OCX控件
今天转了一些常用处理方法,经常用得到这些方法,自己以不想抄,只能COPY了。方法一: 1.手工注册OCX控件 将该控件随程序一起发布,然后,将此文件拷到windows\system,或者直接放在本运行目录,然后执行dos命令,run( "regsvr32 *.ocx ") *表示具体的文件。然后写注册表,将控件注册标志置为1,在程序开始运行时,先检查该标志,是否需要进行注转载 2017-12-07 17:12:30 · 1776 阅读 · 0 评论 -
PB取方法名称
//---在每个方法中写入下面代码,ls_objfun 为这个方法中的名称string ls_objfunRunTimeError e try throw ecatch(RunTimeError lrte) ls_objfun=lrte.RoutineName //guo_vdn.trace('--------------['+ls_objf...原创 2019-08-20 10:42:17 · 282 阅读 · 0 评论 -
PB冒泡排序
long ll_i, ll_k, ll_data[], ll_temp, ll_cntll_data={10,15,8,23,6,4,58,96,89,65}//冒泡排序ll_cnt = upperbound(ll_data)for ll_i = 1 to ll_cnt - 1 ll_temp = ll_data[ll_i] for ll_k = ll_i + 1 to ll_cnt...原创 2019-08-20 10:50:10 · 274 阅读 · 0 评论 -
PB触发itemchanged
dwobject ldwoldwo = idw_1.object.__get_attribute('a21',true)dw_1.event itemchanged(idw_1.getrow(),ldwo,ls_input)原创 2019-08-20 10:50:47 · 2741 阅读 · 0 评论 -
PB9数据窗口转pb7
--删除下面内容print.printername=""print.canusedefaultprinter=yes print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no --替换--原htmlgen(clientevents="1" clientvalidation="1" cl...原创 2019-08-20 10:51:39 · 211 阅读 · 0 评论 -
PB取图片类型
string ls_filetypeif long(BlobMid(ab_FileNameblob,1,4)) = 944130375 Then ls_filetype = 'gif' ElseIf long(BlobMid(ab_FileNameblob,7,4)) = 1179207242 Then ls_filetype = 'jpg' ElseIf ...原创 2019-08-20 10:52:31 · 648 阅读 · 0 评论 -
pb pipe管道同步数据
$PBExportHeader$gf_pipeline.srfglobal type gf_pipeline from function_objectend typeforward prototypesglobal function long gf_pipeline (transaction as_oritransaction, transaction as_taransaction,...原创 2019-08-20 10:55:08 · 645 阅读 · 0 评论 -
pb判断null
$PBExportHeader$gf_isnull.srfglobal type gf_isnull from function_objectend typeforward prototypesglobal function any gf_isnull (any any_val, any any_mr)end prototypesglobal function any gf_is...原创 2019-08-20 10:55:50 · 3173 阅读 · 0 评论 -
PB datastore复制数据
$PBExportHeader$gf_ds_rowscopy.srfglobal type gf_ds_rowscopy from function_objectend typeforward prototypesglobal function integer gf_ds_rowscopy (datastore adw_sur, datastore adw_tar, ref strin...原创 2019-08-20 10:59:19 · 577 阅读 · 0 评论 -
PB时间戳
//====================================================================// 描述:timestamp 获取时间戳//--------------------------------------------------------------------// 作者: Vesn http://www.vesn.net 日...转载 2019-09-03 08:54:27 · 3599 阅读 · 0 评论 -
pb获取EXE全路径
//====================================================================// 说明:获取EXE全路径//--------------------------------------------------------------------// 作者:vesn http://www.vesn.net/vdn.aspx 日期...转载 2019-09-03 08:57:39 · 930 阅读 · 0 评论 -
PB调用setitem改变数据窗口内容时,手动触发itemchanged事件
调用setitem默认不会触发itemchanged事件如果想实现可手动触发itemchanged事件事件格式如下:dw_patinfo.event itemchanged( /*long row*/, /*dwobject dwo*/, /*string data */)Example:dwobject ldwo_obj // 定义数据窗口对象ldwo_obj转载 2017-10-19 08:14:08 · 3530 阅读 · 0 评论