没有合适的资源?快使用搜索试试~ 我知道了~
首页PowerBuilder 10.5 PowerScript函数全览
PowerBuilder 10.5 PowerScript函数全览
5星 · 超过95%的资源 需积分: 12 9 下载量 116 浏览量
更新于2024-07-29
1
收藏 6.36MB PDF 举报
"PB10.5函数大全与语法"
在PowerBuilder 10.5中,PowerScript是一种强大的编程语言,它为开发者提供了丰富的函数库来构建应用程序。本资源详细介绍了PB10.5中的各种函数及其语法,旨在帮助开发者理解和应用这些功能。
PowerScript是PowerBuilder的核心组成部分,它允许开发人员编写业务逻辑、用户界面交互以及数据访问代码。在PB10.5中,PowerScript支持一系列内置函数,包括但不限于数学函数、字符串处理函数、日期和时间函数、系统和控制函数等。
1. 数学函数:例如Abs()用于返回一个数的绝对值,Sqrt()用于计算平方根,Rnd()用于生成随机数。这些函数使得在程序中进行数学计算变得简单。
2. 字符串处理函数:如Len()用于计算字符串长度,SubString()用于提取字符串的一部分,StrReplace()用于替换字符串中的特定部分。这些函数在处理用户输入和数据格式化时非常有用。
3. 日期和时间函数:如Date()返回当前日期,Time()返回当前时间,DateAdd()和TimeAdd()可以用来增加或减少日期和时间。这些函数对于处理日期和时间相关的业务逻辑至关重要。
4. 系统和控制函数:GetEnvironment()可以获取操作系统环境变量,Sleep()用于暂停程序执行一定的时间,OpenWindow()和CloseWindow()则用于打开和关闭窗口。这些函数帮助开发者实现更高级的程序控制和交互。
此外,PowerBuilder 10.5还引入了一些新特性,比如增强的ADO.NET支持,允许更直接地与.NET Framework集成;新的数据窗口控件功能,如过滤、排序和分组,提高了数据处理效率。
在使用这些函数时,开发者需要遵循PowerScript的语法规则,例如正确使用变量声明、流程控制结构(如If...Then...Else, For, While等)以及错误处理机制(Try...Catch...Finally)。理解并熟练运用这些规则和函数,可以使开发过程更加高效且代码更加健壮。
最后,值得注意的是,尽管文档中可能包含了详细的函数说明和示例,但实际使用时还需要结合具体的应用场景和需求进行调整和优化。开发者应该不断实践和学习,以便更好地利用PowerBuilder 10.5提供的功能来构建高质量的应用程序。
"PB10.5函数大全与语法"是PowerBuilder开发者的重要参考资料,它涵盖了PowerScript中的各种函数和语法规则,有助于提升开发者的技能和效率。
Contents
xvi
PowerBuilder
MidA............................................................................................. 728
MidW............................................................................................ 729
Min ............................................................................................... 729
Minute .......................................................................................... 730
Mod .............................................................................................. 730
ModifyData................................................................................... 731
Month ........................................................................................... 733
Move ............................................................................................ 733
MoveTab ...................................................................................... 735
_Narrow........................................................................................ 736
NextActivity .................................................................................. 737
Now.............................................................................................. 738
ObjectAtPointer............................................................................ 739
Object_To_String ......................................................................... 741
OffsetPos ..................................................................................... 742
Open ............................................................................................ 743
OpenChannel............................................................................... 758
OpenSheet................................................................................... 760
OpenSheetWithParm ................................................................... 762
OpenTab ...................................................................................... 766
OpenTabWithParm ...................................................................... 769
OpenUserObject .......................................................................... 774
OpenUserObjectWithParm........................................................... 777
OpenWithParm............................................................................. 782
OutgoingCallList........................................................................... 787
PageCount ................................................................................... 789
PageCreated ................................................................................ 789
ParentWindow.............................................................................. 790
Paste............................................................................................ 791
PasteLink ..................................................................................... 793
PasteRTF ..................................................................................... 794
PasteSpecial ................................................................................ 795
Pi.................................................................................................. 796
PixelsToUnits ............................................................................... 796
Play .............................................................................................. 797
PointerX ....................................................................................... 798
PointerY ....................................................................................... 799
PopMenu...................................................................................... 800
PopulateError............................................................................... 801
Pos............................................................................................... 802
PosA............................................................................................. 804
PosW............................................................................................ 804
Position ........................................................................................ 804
Post.............................................................................................. 810
Contents
PowerScript Reference xvii
PostEvent..................................................................................... 811
PostURL....................................................................................... 814
Preview ........................................................................................ 816
Print.............................................................................................. 817
PrintBitmap................................................................................... 823
PrintCancel................................................................................... 824
PrintClose..................................................................................... 826
PrintDataWindow ......................................................................... 827
PrintDefineFont ............................................................................ 828
PrintEx.......................................................................................... 829
PrintGetPrinter ............................................................................. 830
PrintGetPrinters............................................................................ 831
PrintLine....................................................................................... 832
PrintOpen ..................................................................................... 833
PrintOval ...................................................................................... 834
PrintPage ..................................................................................... 836
PrintRect ...................................................................................... 837
PrintRoundRect............................................................................ 838
PrintScreen .................................................................................. 839
PrintSend ..................................................................................... 840
PrintSetFont ................................................................................. 842
PrintSetPrinter.............................................................................. 843
PrintSetSpacing ........................................................................... 844
PrintSetup .................................................................................... 845
PrintSetupPrinter.......................................................................... 845
PrintText....................................................................................... 846
PrintWidth..................................................................................... 848
PrintX ........................................................................................... 849
PrintY ........................................................................................... 849
ProfileInt....................................................................................... 850
ProfileString.................................................................................. 852
Rand............................................................................................. 854
Randomize................................................................................... 854
Read............................................................................................. 855
Real.............................................................................................. 858
RecognizeText ............................................................................. 859
RegistryDelete.............................................................................. 859
RegistryGet .................................................................................. 860
RegistryKeys ................................................................................ 861
RegistrySet................................................................................... 862
RegistryValues ............................................................................. 865
RelativeDate................................................................................. 866
RelativeTime ................................................................................ 866
ReleaseAutomationNativePointer ................................................ 867
Contents
xviii
PowerBuilder
ReleaseNativePointer .................................................................. 868
RemoveDirectory ......................................................................... 868
Repair........................................................................................... 869
Replace........................................................................................ 870
ReplaceA...................................................................................... 872
ReplaceText ................................................................................. 873
ReplaceW..................................................................................... 874
Reset............................................................................................ 874
ResetArgElements ....................................................................... 877
ResetDataColors.......................................................................... 878
ResetInk....................................................................................... 879
ResetPicture................................................................................. 879
Resize .......................................................................................... 880
Resolve_Initial_References ......................................................... 881
RespondRemote .......................................................................... 883
Restart.......................................................................................... 884
ResumeTransaction ..................................................................... 884
Reverse........................................................................................ 886
RevertToSelf ................................................................................ 887
RGB ............................................................................................. 887
Right............................................................................................. 889
RightA .......................................................................................... 890
RightW ......................................................................................... 890
RightTrim...................................................................................... 891
RightTrimW .................................................................................. 891
RollbackOnly ................................................................................ 891
RollbackTransaction..................................................................... 893
Round........................................................................................... 894
RoutineList ................................................................................... 895
Run............................................................................................... 896
Save............................................................................................. 898
SaveAs......................................................................................... 902
SaveDocument............................................................................. 909
SaveInk ........................................................................................ 911
Scroll ............................................................................................ 914
ScrollNextPage ............................................................................ 915
ScrollNextRow.............................................................................. 916
ScrollPriorPage ............................................................................ 917
ScrollPriorRow ............................................................................. 918
ScrollToRow................................................................................. 919
Second......................................................................................... 920
SecondsAfter................................................................................ 920
Seek............................................................................................. 921
SelectedColumn........................................................................... 923
Contents
PowerScript Reference xix
SelectedIndex .............................................................................. 924
SelectedItem ................................................................................ 925
SelectedLength ............................................................................ 926
SelectedLine ................................................................................ 927
SelectedPage............................................................................... 928
SelectedStart................................................................................ 929
SelectedText ................................................................................ 930
SelectionRange............................................................................ 931
SelectItem .................................................................................... 932
SelectObject................................................................................. 936
SelectTab..................................................................................... 936
SelectText .................................................................................... 937
SelectTextAll ................................................................................ 941
SelectTextLine ............................................................................. 942
SelectTextWord............................................................................ 943
Send............................................................................................. 945
SeriesCount ................................................................................. 947
SeriesName ................................................................................. 948
SetAbort ....................................................................................... 949
SetAlignment................................................................................ 951
SetArgElement............................................................................. 952
SetAutomationLocale................................................................... 953
SetAutomationPointer .................................................................. 954
SetAutomationTimeout................................................................. 955
SetBoldDate................................................................................. 957
SetByte......................................................................................... 958
SetColumn ................................................................................... 959
SetComplete ................................................................................ 960
SetData ........................................................................................ 963
SetDataDDE................................................................................. 964
SetDataPieExplode...................................................................... 965
SetDataStyle ................................................................................ 967
SetDateLimits............................................................................... 972
SetDropHighlight.......................................................................... 973
SetDynamicParm ......................................................................... 974
SetFirstVisible .............................................................................. 975
SetFocus...................................................................................... 976
SetGlobalProperty........................................................................ 977
SetItem......................................................................................... 978
SetLevelPictures .......................................................................... 981
SetLibraryList ............................................................................... 982
SetMask ....................................................................................... 984
SetMessage ................................................................................. 985
SetMicroHelp................................................................................ 986
Contents
xx
PowerBuilder
SetNull.......................................................................................... 987
SetOverlayPicture ........................................................................ 988
SetParagraphSetting.................................................................... 990
SetPicture..................................................................................... 991
SetPointer .................................................................................... 992
SetPosition................................................................................... 993
SetProfileString ............................................................................ 995
SetRange ..................................................................................... 997
SetRecordSet............................................................................... 998
SetRedraw ................................................................................... 999
SetRemote ................................................................................. 1000
SetResultSet .............................................................................. 1002
SetSeriesStyle............................................................................ 1003
SetSelectedDate ........................................................................ 1010
SetSelectedRange ..................................................................... 1011
SetSpacing................................................................................. 1012
SetState ..................................................................................... 1013
SetTextColor .............................................................................. 1014
SetTextStyle............................................................................... 1014
SetTimeout................................................................................. 1015
SetToday.................................................................................... 1017
SetToolbar.................................................................................. 1018
SetToolbarPos ........................................................................... 1020
SetTop........................................................................................ 1024
SetTraceFileName ..................................................................... 1024
SetTransPool ............................................................................. 1026
SetValue..................................................................................... 1028
SharedObjectDirectory............................................................... 1029
SharedObjectGet ....................................................................... 1030
SharedObjectRegister................................................................ 1033
SharedObjectUnregister............................................................. 1034
Show .......................................................................................... 1034
ShowHeadFoot .......................................................................... 1035
ShowHelp................................................................................... 1036
ShowPopupHelp ........................................................................ 1038
Sign............................................................................................ 1039
SignalError ................................................................................. 1039
Sin.............................................................................................. 1041
Sleep.......................................................................................... 1041
Sort............................................................................................. 1042
SortAll......................................................................................... 1043
Space......................................................................................... 1045
Sqrt............................................................................................. 1045
Start............................................................................................ 1046
剩余1193页未读,继续阅读
2010-04-14 上传
2017-08-25 上传
点击了解资源详情
2012-12-18 上传
2012-10-29 上传
2011-12-30 上传
2008-06-03 上传
点击了解资源详情
ahclm521
- 粉丝: 15
- 资源: 50
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- BottleJS快速入门:演示JavaScript依赖注入优势
- vConsole插件使用教程:输出与复制日志文件
- Node.js v12.7.0版本发布 - 适合高性能Web服务器与网络应用
- Android中实现图片的双指和双击缩放功能
- Anum Pinki英语至乌尔都语开源词典:23000词汇会话
- 三菱电机SLIMDIP智能功率模块在变频洗衣机的应用分析
- 用JavaScript实现的剪刀石头布游戏指南
- Node.js v12.22.1版发布 - 跨平台JavaScript环境新选择
- Infix修复发布:探索新的中缀处理方式
- 罕见疾病酶替代疗法药物非临床研究指导原则报告
- Node.js v10.20.0 版本发布,性能卓越的服务器端JavaScript
- hap-java-client:Java实现的HAP客户端库解析
- Shreyas Satish的GitHub博客自动化静态站点技术解析
- vtomole个人博客网站建设与维护经验分享
- MEAN.JS全栈解决方案:打造MongoDB、Express、AngularJS和Node.js应用
- 东南大学网络空间安全学院复试代码解析
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功