选择显示字体大小

powerbuilder初學者概念20則

 

一、pbr使用的时机?

1、如果你将resource动态的指定给objectcontrol 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?

设定及修改datawindowupdate tableupdate 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

 

七、当datawindowcolumn在存档后,如果想设计禁止操作者再到该column输入

,因该如何设计?

在该datawindowcolumn上按右键进入propertiesexpressions

protect设成 if(isrownew(),0,1)即可

 

八、在使用inherit windows时,有的windowobject不需要执行祖先event

中的程序那怎么办?

windowobjectevent中,在design下拉视窗中,有四个script设定其中第三

3.override ancestor script 即可关闭祖先的程序,只执行目前的程序

 

九、objectproperties中的有一个设定visible 打勾,我因设计需要将打勾取

消使object 看不见,但现在想使其恢复,该如何作?该object己经看不见了

object 在取消visible后,如要恢复请下拉editcontrol listobject 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   安全   模式   框架   测试   开源   游戏

SQL数据库相关

My-SQL   Ms-SQL   Access   DB2   Oracle   Sybase   SQLserver   索引   存储过程   加密   数据库   分页   视图  

手机无线相关

3G   Wap   CDMA   GRPS   GSM   IVR   彩信   短信   无线   增值业务

网页设计制作相关

HTML   CSS   网页配色   网页特效   Javascript   VBscript   Dreamweaver   Frontpage   JS   Web   网站设计

网站建设推广相关

建站经验   网站优化   网站排名   推广   Alexa

操作系统/服务器相关

Windows XP   Windows 2000   Windows 2003   Windows Me   Windows 9.x   Linux   UNIX   注册表   操作系统   服务器   应用服务器

图形图像多媒体相关

Photoshop   Fireworks   Flash   Coreldraw   Illustrator   Freehand   Photoimpact   多媒体   图形图像

标准 网站致力的规范

Valid CSS!

无不良内容,无不良广告,无恶意代码

Valid XHTML 1.0 Transitional

creativecommons