0% found this document useful (0 votes)
233 views26 pages

PowerBuilder 11.5

The document introduces PowerBuilder as a programming language and discusses the author's initial difficulties in finding resources on PowerBuilder in Arabic. It notes the lack of Arabic materials and references for the topic. The author hopes to contribute to addressing this issue by creating an Arabic guide on PowerBuilder as their first step in working with the program.

Uploaded by

Mohammed Ahmed
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
233 views26 pages

PowerBuilder 11.5

The document introduces PowerBuilder as a programming language and discusses the author's initial difficulties in finding resources on PowerBuilder in Arabic. It notes the lack of Arabic materials and references for the topic. The author hopes to contribute to addressing this issue by creating an Arabic guide on PowerBuilder as their first step in working with the program.

Uploaded by

Mohammed Ahmed
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 26

PowerBuilder

PowerBuilderdeveloper

2010

PowerBuilder11.5 2010


, ,
.
PowerBuilder

.

:
,
.
:

:

..









.

:
..
..



..




.

2 PowerBuilder11.5

PowerBuilder11.5 2010

PowerBuilder
1974 ( Computer Solutions Inc) CSI
7 1981
(Software package) GrowthPower
HP3000 . .
CSI
DaveLitwack
) Client/Server ORACLE
SYBASE ( 1990 .

PowersoftsPowerBuilder1.0
5
22 ) powersoft (
1993 22 37 57
) (1994 133
SYBASE 1995 ) 904 (.
POWERBUILDER
) Sybase ( .

3 PowerBuilder11.5

PowerBuilder11.5 2010

SYBASE
SYBASE ORACLE
" SybaseSQLServer ." 4.9

2000 Sybase
) (
. .
:
PowerBuilder .1
) PocketBuilder .2 (
) PowerDesigner .3 ) ((Sybase,MS,Oracle,IBM
:
SQLAnywhere .1 ASA
AdaptiveServerEnterprise(ASE) .2
ReplicationServer .3
: )( LargestDataWarehouse
" SYBASEIQ . "
http://www.sybase.com/detail?id=1056945
:
.1
.2
.3
.4
.5
.6

SybasemBanking365
SybaseMMS365
Afaria
iAnywhereMobileOffice
PocketBuilder
SQLAnywhere

: FinancialFusionBankingSuite

4 PowerBuilder11.5

PowerBuilder11.5 2010

: BusinessIntelligence
SybaseIQ (1
RAPTheTradingEdition (2
Sybase
http://www.sybase.com/products


PowerBuilder
) ( IntegratedDevelopmentEnvironment
) . ( RapidApplicationDevelopment
PB
Twotierapplications .1
Multitierapplications .2
Webapplications .3

Google .


30 . 3500
Sybase
.

PB (DataWindow)
. Sybase
dw.net VisualStudio.net

5 PowerBuilder11.5

PowerBuilder11.5 2010

PowerBuilder
Writecodeonlyoncedeployeverywhere

PowerBuilder

http://en.wikipedia.org/wiki/Powerbuilder
http://en.wikipedia.org/wiki/Integrated_Development_Environment
http://www.informationweek.com/503/03iusyb.htm;jsessionid=RZEPK5EUUJE21QE1GHO
SKHWATMY32JVN
http://www.sybase.com/products/modelingdevelopment/powerbuilder/newfeaturescapabiliti
es
http://www.answers.com/topic/powerbuilder
http://www.sybase.com/products/modelingdevelopment/powerbuilder
http://en.wikipedia.org/wiki/Sybase
http://www.sybase.com/detail?id=1056945

.1
.2
.3
.4

.5
.6
.7
.8
http://www.sybase.com/products .9

6 PowerBuilder11.5

PowerBuilder11.5 2010

PB
PowerBuilder
) ( IntegratedDevelopmentEnvironment
) . ( RapidApplicationDevelopment
PB
Twotierapplications .1
Multitierapplications .2
Webapplications .3
IDE
.
compiler
) (Debugger .

pb11.5 )Sybase
( . PB12 PowerBuilder
. Classic 11.5

7 PowerBuilder11.5

PowerBuilder11.5 2010

: windows sdk .netframework ajax


. powerbuilder11.5,12

SystemTree

Output

powerbar pb

New . 1
Workspacesandtargets .1
) (target workspace Visual Studio solution
)(projects .

8 PowerBuilder11.5

PowerBuilder11.5 2010

Solution=Workspace
Project=target
PB ) ( targets

3
Applicationtarget .1
Multitier Applications client/server
.NETtarget .2
AnEAServerorApplicationServerComponenttarget .3
(PBobjects ) Library .2
Pbobjects .3
class , functions , windows objects

9 PowerBuilder11.5

PowerBuilder11.5 2010

Inherit .2
SystemTree .3
Output .4 .
Server.5 ApplicationServer
Database .6
Debug .7
Run . 8
:

Workspace(.pbw)
PowerBuildertarget(.pbt)
PowerBuilderlibrary(.pbl)
Function

Menu
window

PowerBuilderlibrary(.pbl)
Window

Menu
Function

.NETWindowsForms
Applications

10 PowerBuilder11.5

PowerBuilder11.5 2010

:
PBTasks workspace
PBTasks
New Target Application

Finish window PBobject < new saveas


w_first_app Properties title " ".
Singlelineedit < control < Insert w_first_app sle_name
statictext < control < insert w_first_app st_name
: control (Menu) painterbar1 .
(statictext=JLabel) (singlelineedit=jTextField) :
SystemTree ) (w_first_app Run/Preview :
: java Microsoft.NET PB MS
PB10.5,pb11,pb11.5,pb12

11 PowerBuilder11.5

PowerBuilder11.5 2010

sle_name ): modified() (event


//date:05072010
/*
taskname:pbfirstApplication
thisfirstexampleinbook
" "

*/
stringls_name
ls_name=this.text
"+"~n"+ls_name) "messagebox("FirstApp",
" comments .1 "

:
// :

12 PowerBuilder11.5

PowerBuilder11.5 2010

:
/*
*/
" Identifier .2 "
)(
PB
_ underscore ) ( notcasesensitive 40 ) (_,-,%,$,# ls_name
.3 (~t) tab (~b) backspace ( ~n ) newline
.4 messagebox .
firstapp
) Open(w_first_app run

13 PowerBuilder11.5

PowerBuilder11.5 2010

:
.1 pb
.2 ,window ) controls (
.3 comments
.4 ) (Identifiers
.5 newline

:(July30,2010)

SAP Sybase 5.8 .

MySQL
JAVA ORACLE JAVA 7.4
. SAP . Sybase

ORACLE SAP
Sybase SAP ERP
Sybase Database
Sybase
.SybaseIQ
SAP ORACLE ERP . Database

PowerBuilder!!!!
PB
SAP .

14 PowerBuilder11.5

PowerBuilder11.5 2010

:

) / ( 70 .

target
application
w_main
(sle) Singlelineedit .1
(em) Editmask(5) .2
(cb) Commandbutton(3) .3
(st) statictext(3) .4

15 PowerBuilder11.5

PowerBuilder11.5 2010

(Datatypes)
(Identifiers)
(: ( ): ) :
. ( string: ( ) ls_name: ) stringls_name
. (standarddatatypes) pb
word ( binary large object)
True or false
( ) 255 0 ( 8-bit )
A single ASCII character.
16-bit signed integers, from -32768 to +32767.
32-bit signed integers, from -2147483648 to +2147483647.
64-bit signed integers, from -9223372036854775808 to9223372036854775807

Blob
Boolean
Byte
Char or character
Integer or int
Long
Longlong
2001-12-25 // December 25, 2001 Date
DateTime
Time
28 0 Decimal or dec
A signed floating-point number with 15 digits of precision and a range from 2.2250738585073E- Double
308 to 1.79769313486231E+308, and -2.2250738585073E-308 to -1.79769313486231E+308.
Any ASCII character with variable length (0 to 2147483647).

String
Real
UnsignedInteger,
UnsignedInt, or
UInt
UnsignedLong or
ULong

PowerScriptreference (PowerBuilder11.5) :
new insert object systemobjectdatatypes

windoww_main
menum_main
commandbuttonLastClicked
any datatype pb ( any) chameleon datatype object structure array ( standard datatypes)

16 PowerBuilder11.5

PowerBuilder11.5 2010

) (Variable Scope
variable pb ) ( Nameanddatatype
public private pb
scripts public script public

Global
Shared
Instance

: variables PowerBuilder
Global .1 ) (public
Instance .2
Shared .3
Local .4
: pb ([scope][prefix]_[name])
: string (Global) application
[global][string]_[name] gs_name

17 PowerBuilder11.5

PowerBuilder11.5 2010

( instance) object integer :


ii_age
(local) ( function) decimal :
( (ldec_salary=Ldec_salary) pbnotcasesensitive) Ldec_salary

Scope

Prefix

Example

Argument
Global
Instance
Local
Shared

A
G
I
L
S

al_NameId
gs_Name
ii_Count
ls_Foo
si_Number

Standard DataType Prefixes

Data Type

Prefix

Example

Any
Blob
Boolean
Character
Date
DateTime
Decimal
Double
Integer
Long
Real
String
Time
Unsigned Integer
Unsigned Long

a
blb
b
c
d
dt
dec
db
i
l
r
s
tm
ui
ul

la_Raw
ablb_Image
lb_Exit
lc_Name
ld_BirthDate
ldt_Wreck
ldec_Salary
gdb_OverTime
li_Count
ll_RowCount
sr_Illusion
ls_Bean
itm_MrWolf
lui_Handle
gul_Ken

. ( bydefault) integerii_count
String=emptystring()

Date=19000101(January1,1900)

Boolean=false

DateTime=1900010100:00:00

Intger=Zero(0)

Time=00:00:00(midnight)

18 PowerBuilder11.5

PowerBuilder11.5 2010

controls .PB

)(
(CommandButton_exit) cb_exit .
pb
. manual design options .
activeonlyafteradot autoscript tab
properties functions events object
" ". visualstudio netBeans
: line PB
Ctrl+Shift+g

19 PowerBuilder11.5

PowerBuilder11.5 2010

:
. controls
halt cb_exit "clicked" event
"Terminatesanapplication"
cb_new " clicked" event
sle_name.text

=""

st_result.text

=""

em_mark_5.text

=""

em_mark_4.text

=""

em_mark_3.text

=""

em_mark_2.text

=""

em_mark_1.text

=""

( 5) cb_calculate " clicked" event


check . 70 70
. sle_name
1.stringls_name;dec{3}ld_m1,ld_m2,ld_m3,ld_m4,ld_m5,ld_marks_avg=0
2.ld_m1=dec(em_mark_1.text)
3.ld_m2=dec(em_mark_2.text)
4.ld_m3=dec(em_mark_3.text)
5.ld_m4=dec(em_mark_4.text)
6.ld_m5=dec(em_mark_5.text)
7.ls_name=trim(sle_name.text)
8.ifisnull(ls_name)orls_name=""then

) ; ( )
. ( linebyline)

(casting) decimal 6 2

trim function 7

isnullfunction else if
ls name

9.messagebox("Error...","youmustentername")
10.else
11.ld_marks_avg=(ld_m1+ld_m2+ld_m3+ld_m4+ld_m5)/5
12.ifld_marks_avg>=70then
13.st_result.text=ls_name+"~n"+"youpasstheexam~trate="+string(ld_marks_avg)
14.else
15.st_result.text="Sorry~nyouMusttryagain["+ls_name+"]"
16.endif
17.endif

20 PowerBuilder11.5

PowerBuilder11.5 2010

properties w_main windowtype ! response windowstate


! normal backcolor titlebar w_main center
). (Checkbox
editmask text numbers datetime
buttons w_main (checkbox) FlatStyle properties
cb_exit Esc ( checkbox) cancel properties cb_calculate
. default
format taborder mouse . tab

) open(w_main (open) event secondapp


run

Esc

Exit Enter
calculate
Tab
.

21 PowerBuilder11.5

PowerBuilder11.5 2010

:
.1 datatypes PowerBuilder
.2 ( scope) PowerBuilder
.3 ([scope][prefix]_[name]) PowerBuilder
.4 Controls em_mark ,st_name ,cb_exit , sle_name : PowerBuilder
.5 TabOrder
.6 ifelsestatement
.7 dot events functions object
.8 functions pb trim isnull
.9 Ctrl+Shift+g line
.10 : casting datatype Datatype .
.11 halt

(,) ) ( .

...:.


*
...
*
..
*

*

*

*
...
*

*

22 PowerBuilder11.5

PowerBuilder11.5 2010

) (powerbuilder
(ObjectOriented) OO PowerBuilder
PowerBuilder PowerBuilder
(window,menu,etc) object ). (properties,events,andfunctions
) (inheritance
Object inherit rightclick saveas

Encapsulation
attribute class
Get Method
SetMethod
Methods
.

Polymorphism
Method
Class Class
:

. method class
class
class )( .

OO PowerBuilder
.1 ) (PB
.2 ) + (pb ) ( DataWindow
.3 ) (pocketbuilder)+(deployto.NET
.4 ) ( liveExample

23 PowerBuilder11.5

PowerBuilder11.5 2010

!!! PowerBuilder

PowerBuilder
.1 JAVA,.NET,PHP
.
.2 Client/ServerApplication
powerbuilder J2ee ASP.NET
Powerbuilder j2ee .NET
dw JSF PB ASP.net

24 PowerBuilder11.5

PowerBuilder11.5 2010

.3 Pb forms
reports skins
componants (AdvancedGUI) powerbuilder11.5 .

)deploy( PB

new project ApplicationWizard next



.
PowerBuilderruntimepackage
dll . PB

25 PowerBuilder11.5

PowerBuilder11.5 2010

.
.
(PowerBuilder11.5documentation) Sybooks .1 pb
Sybase .
[email protected]
www.pbdr.com .2
/http://pbdj.syscon.com .3
/http://www.araboug.org/ib .4
http://www.softtreetech.com/hightech/tips.htm .5

,
.


[email protected]

Pbdeveloper
582010

26 PowerBuilder11.5

You might also like