一、pbr使用的时机?
1、如果你将resource动态的指定给object或control property,就必须使用pbr
xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
2、如果使用pbr会降低exe档发行时所需要的档案数目
3、要让许多的应用程序使用共同的library
二、如何将bmp,ico,datawindow资源整合到pbd中?
使用pbr(资源索引档)将其资源整合进入pbd档案中pbr的语法如下:
xxxx.pbl
xxxx.bmp
xxxx.ico
如果你的script是如此p_roller.picturename="c:\rollwe.bmp"
则需将该叙述加入pbr中
c:\rollwe.bmp
三、如何将datawindow资料更新在多个table上?
设定及修改datawindow的update table和update column资料
四、错误讯息超过script行号?
可能忘加入end if 或end choose
五、中文字型发生错误?
修改pbty050.dll的拼字错误,或到http://www.eur.com.tw下载修正程序
六、中英文输入法切换?
function boolean immsimulatehotkey (unsignedlong hwnd,
unsingedlong dwhotkeyid) library "imm32.dll"
function unsignedlong getkeyboardlayout (unsignedlongwlayout)library "
user32.dll"
function boolean immisime(unsignedlong hklkeyboardlayout)library "imm3
2.dll"
英文输入法切换
constant int ime_thotkey_ime_nonime_toggle=112
uint hklcurrent
unsignedlong hnd
hklcurrent=getkeyboardlayout(0)
if immisime(hklcurrent) then
hnd=handle(parent)
immsimulatehotkey(hnd,ime_thotkey_ime_nonime_toggle)
end if
中文输入法切换
constant int ime_thotkey_ime_nonime_toggle=112
uint hklcurrent
unsignedlong hnd
hklcurrent=getkeyboardlayout(0)
if not immisime(hklcurrent) then
hnd=handle(parent)
immsimulatehotkey(hnd,ime_thotkey_ime_nonime_toggle)
end if
七、当datawindow的column在存档后,如果想设计禁止操作者再到该column输入
,因该如何设计?
在该datawindow的column上按右键进入properties在expressions
的protect设成 if(isrownew(),0,1)即可
八、在使用inherit windows时,有的window的object不需要执行祖先event
中的程序那怎么办?
在window的object的event中,在design下拉视窗中,有四个script设定其中第三
项3.override ancestor script 即可关闭祖先的程序,只执行目前的程序
九、object的properties中的有一个设定visible 打勾,我因设计需要将打勾取
消使object 看不见,但现在想使其恢复,该如何作?该object己经看不见了
object 在取消visible后,如要恢复请下拉edit的control list将object 的pro
perties拉出设回
十、powerbuilder 由版本5.0提升至5.0.03后,在使用sql central 工具时,若
希望查看stored procedure,按右键,选open,会出现"这个程序执行的作业无效
,即将关闭"。
powerbuilder 5.0.03中之程序bug,请将scview.exe程序档回复。
十一、在程序中如何控制让使用者在输入资料时,能够自动产生连续性的号码?
在定义table栏位时,其default值(最后一栏)设定中有一autoincrement选项,即
会自动产生连续的号码。
十二、如何在视窗之间传递叁数?
powerbuilder提供了三个函数可以达到此功能:
1.openwithparm()
2.opensheetwithparm()
3.closewithreturn()
当在程序中呼叫了这些函数时,从视窗所传过来的叁数会放在message对象中。
可从message的属性中取得所要的叁数。
十三、<function><window function><user object function>
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器