powerbuilder 11.5
Post on 29-Oct-2015
154 Views
Preview:
DESCRIPTION
TRANSCRIPT
-
PowerBuilderdeveloper
2010
PowerBuilder
-
0102 5.11redliuBrewoP
5.11redliuBrewoP 2
, , .
redliuBrewoP
.
:
, .
:
:
..
.
.. ..
..
.
:
-
0102 5.11redliuBrewoP
5.11redliuBrewoP 3
redliuBrewoP
cnI snoituloSretupmoC( ) ISC 4791 1891 7 ( egakcap erawtfoS) rewoPhtworG
. . 0003PH
ISC kcawtiLevaD
ELCARO ) revreS/tneilC . 0991 ( ESABYS
stfosrewoP0.1redliuBrewoP
5 ( tfosrewop) 22
75 73 22 3991 331 ( 4991)
.( 409) 5991 ESABYS
REDLIUBREWOP ( . ) esabyS
-
0102 5.11redliuBrewoP
5.11redliuBrewoP 4
SESABY
ELCARO ESABYS ." 9.4 " revreSLQSesabyS
esabyS 0002 ( )
. .
:
redliuBrewoP .1( ) redliuBtekcoP .2 ((MBI,elcarO,SM,esabyS) ) rengiseDrewoP .3
:
ASA erehwynALQS .1)ESA(esirpretnErevreSevitpadA .2revreSnoitacilpeR .3
( esuoheraWataDtsegraL ) :
" . " QIESABYS
5496501=di?liated/moc.esabys.www//:ptth
:
563gniknaBmesabyS .1563SMMesabyS .2airafA .3eciffOeliboMerehwynAi .4redliuBtekcoP .5erehwynALQS .6
etiuSgniknaBnoisuFlaicnaniF :
-
0102 5.11redliuBrewoP
5.11redliuBrewoP 5
ecnegilletnIssenisuB :
QIesabyS (1noitidEgnidarTehTPAR (2
esabyS
stcudorp/moc.esabys.www//:ptth
redliuBrewoP
( tnemnorivnEtnempoleveDdetargetnI) ( . tnempoleveDnoitacilppAdipaR)
BP
snoitacilppareitowT .1snoitacilppareititluM .2snoitacilppabeW .3
. elgooG
0053 . 03
esabyS
.
( wodniWataD) BP esabyS .
ten.oidutSlausiV ten.wd
-
PowerBuilder11.5 2010
6 PowerBuilder11.5
PowerBuilder
Writecodeonlyoncedeployeverywhere
PowerBuilder
1. http://en.wikipedia.org/wiki/Powerbuilder 2. http://en.wikipedia.org/wiki/Integrated_Development_Environment 3. http://www.informationweek.com/503/03iusyb.htm;jsessionid=RZEPK5EUUJE21QE1GHO
SKHWATMY32JVN 4. http://www.sybase.com/products/modelingdevelopment/powerbuilder/newfeaturescapabiliti
es 5. http://www.answers.com/topic/powerbuilder 6. http://www.sybase.com/products/modelingdevelopment/powerbuilder 7. http://en.wikipedia.org/wiki/Sybase 8. http://www.sybase.com/detail?id=1056945 9. http://www.sybase.com/products
-
0102 5.11redliuBrewoP
5.11redliuBrewoP 7
redliuBrewoP
( tnemnorivnEtnempoleveDdetargetnI) ( . tnempoleveDnoitacilppAdipaR)
BP
snoitacilppareitowT .1snoitacilppareititluM .2snoitacilppabeW .3
EDI
. relipmoc
. (reggubeD)
)esabyS 5.11bp redliuBrewoP 21BP . (
5.11 . cissalC
BP
-
0102 5.11redliuBrewoP
5.11redliuBrewoP 8
xaja krowemarften. kds swodniw : . 21,5.11redliubrewop
.
eerTmetsyS
3
8 7 6 5 34 2 1
4 tuptuO
bp rabrewop
weN. 1
stegratdnasecapskroW .1 noitulos oidutS lausiV ecapskrow ( tegrat)
. (stcejorp)
-
PowerBuilder11.5 2010
9 PowerBuilder11.5
Solution=WorkspaceProject=target
targets ) ( PB
3
1. Applicationtarget client/server Applications Multitier
2. .NETtarget 3. AnEAServerorApplicationServerComponenttarget
2. Library ) PBobjects(3. Pbobjects
objects windows ,functions ,class
-
0102 5.11redliuBrewoP
5.11redliuBrewoP 01
tirehnI. 2 eerTmetsyS. 3 . tuptuO. 4 revreSnoitacilppA revreS.5 esabataD. 6 gubeD. 7 nuR. 8
)wbp.(ecapskroW
)tbp.(tegratredliuBrewoP
)lbp.(yrarbilredliuBrewoP
noitcnuF
uneM
wodniw
)lbp.(yrarbilredliuBrewoP
wodniW
uneM
noitcnuF
smroFswodniWTEN.snoitacilppA
:
-
0102 5.11redliuBrewoP
5.11redliuBrewoP 11
:
ecapskrow sksaTBP sksaTBP
noitacilppA tegraT weN
saevas tcejboBP < wen wodniw hsiniF ". " eltit seitreporP ppa_tsrif_w
eman_els ppa_tsrif_w tideenilelgniS < lortnoc < tresnI
eman_ts ppa_tsrif_w txetcitats
-
0102 5.11redliuBrewoP
5.11redliuBrewoP 21
: )(deifidom( tneve) eman_els
01027050:etad//
*/
noitacilppAtsrifbp:emanksat
koobnielpmaxetsrifsiht
" "
/*
eman_slgnirts
txet.siht=eman_sl
)eman_sl+"n~"+" ","ppAtsriF"(xobegassem
" " stnemmoc. 1
:
//:
-
0102 5.11redliuBrewoP
5.11redliuBrewoP 31
:
*/
/*
" " reifitnedI. 2
( ) BP
erocsrednu _ -
( evitisnesesacton) -
-
04 -
(,_-,%$,#,) -
eman_sl
( b~) ecapskcab ( n~ ) enilwen ( t~) bat .3
. xobegassem .4
ppatsrif
nur )ppa_tsrif_w(nepO
-
0102 5.11redliuBrewoP
5.11redliuBrewoP 41
:
bp .1
( ) slortnoc wodniw, .2
stnemmoc .3
(sreifitnedI) .4
enilwen .5
BP . PAS
!!!! redliuBrewoP
. esabataD PRE ELCARO PAS
PAS ELCARO PRE PAS esabyS
esabataD esabyS esabyS
QIesabyS.
LQSyM 4.7 AVAJ ELCARO AVAJ . esabyS PAS .
: )0102,03yluJ(
. 8.5 esabyS PAS
-
0102 5.11redliuBrewoP
5.11redliuBrewoP 51
:
. 07 ( / )
tegrat
noitacilppa
niam_w
(els) tideenilelgniS .1
(me) )5(ksamtidE .2
(bc) )3(nottubdnammoC .3
(ts) )3(txetcitats .4
-
PowerBuilder11.5 2010
16 PowerBuilder11.5
)Datatypes( )Identifiers(
: ) : ( ): (
stringls_name ) :ls_name( ) :string . (
pb )standarddatatypes( .
(binary large object) word Blob True or false Boolean
8-bit ) ( 0 255 ) ( Byte A single ASCII character. Char or character
32768 to +32767.-from bit signed integers,-16 Integer or int 83648 to +2147483647.21474-, from bit signed integers-32 Long
64-bit signed integers, from -9223372036854775808 to9223372036854775807 Longlong 2001-12-25 // December 25, 2001 Date
DateTime Time
0 28 Decimal or dec A signed floating-point number with 15 digits of precision and a range from 2.2250738585073E-
308 to 1.79769313486231E+308, and -2.2250738585073E-308 to -1.79769313486231E+308. Double
Any ASCII character with variable length (0 to 2147483647). String Real UnsignedInteger,
UnsignedInt, or UInt
UnsignedLong or ULong
: (PowerBuilder11.5) PowerScriptreference
systemobjectdatatypes object insert new
windoww_main
menum_main
commandbuttonLastClicked
chameleon datatype - )any ( pb datatype any )standard datatypes ( array structure object
-
0102 5.11redliuBrewoP
5.11redliuBrewoP 71
(epocS elbairaV) ( epytataddnaemaN ) bp elbairav
bp etavirp cilbup cilbup tpircs cilbup stpircs
labolG
derahS
ecnatsnI
redliuBrewoP selbairav :
(cilbup) labolG .1
ecnatsnI .2
derahS .3
lacoL .4
(]eman[_]xiferp[]epocs[) bp :
(labolG) noitacilppa gnirts :
]eman[_]gnirts[]labolg[ eman_sg
-
PowerBuilder11.5 2010
18 PowerBuilder11.5
: integer object )instance (ii_age
: decimal )function ( )local(
Ldec_salary )pbnotcasesensitive )ldec_salary=Ldec_salary( (
Scope Prefix Example Argument A al_NameId Global G gs_Name Instance I ii_Count Local L ls_Foo Shared S si_Number
Standard DataType Prefixes
Data Type Prefix Example Any a la_Raw Blob blb ablb_Image Boolean b lb_Exit Character c lc_Name Date d ld_BirthDate DateTime dt ldt_Wreck Decimal dec ldec_Salary Double db gdb_OverTime Integer i li_Count Long l ll_RowCount Real r sr_Illusion String s ls_Bean Time tm itm_MrWolf Unsigned Integer ui lui_Handle Unsigned Long ul gul_Ken
integerii_count )bydefault ( .
Date=19000101(January1,1900)String=emptystring()
DateTime=1900010100:00:00Boolean=false
Time=00:00:00(midnight) Intger=Zero(0)
-
0102 5.11redliuBrewoP
5.11redliuBrewoP 91
.BP slortnoc
( ) . (tixe_nottuBdnammoC) tixe_bc
bp . snoitpo ngised . launam
tpircsotua bat todaretfaylnoevitca
tcejbo stneve snoitcnuf seitreporp snaeBten oidutslausiv "."
BP enil :
g+tfihS+lrtC
-
PowerBuilder11.5 2010
20 PowerBuilder11.5
:
controls .
event "clicked" cb_exit halt "Terminatesanapplication"
even "clicked " cb_new t 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 =""
event "clicked " cb_calculate )5 ( 70 70 . check
sle_name
.
ld_m2,ld_m3,ld_m4,ld_m5,ld_marks_avg=01.stringls_name;dec{3}ld_m1,
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
ess gebox("Error...","youmustentername")9.m a
10.else
2+ld_m3+ld_m4+ld_m5)/5
- if else isnullfunction ls name
- 7 function trim
- 2 6 decimal )casting(
- ); ( ) )linebyline (.
11.ld_marks_avg=(ld_m1+ld_m
12.ifld_marks_avg>=70then
sult.text=ls_name+"~n"+"youpasstheexam~trate="+string(ld_marks_avg)13.st_re
14.else
lt.text="Sorry~nyouMusttryagain["+ls_name+"]"15.st_resu
endif16.
17.endif
-
0102 5.11redliuBrewoP
5.11redliuBrewoP 12
etatswodniw !esnopser epytwodniw niam_w seitreporp retnec niam_w ltitrabe rolockcab !lamron
( . xobkcehC)
emitetad srebmun txet ksamtide
( xobkcehc) elytStalF seitreporp niam_w snottub
etaluclac_bc ( xobkcehc) lecnac seitreporp csE tixe_bc . tluafed
. bat esuom redrobat tamrof
ppadnoces (nepo) tneve )niam_w(nepo nur
csE
retnE tixE etaluclac baT .
-
0102 5.11redliuBrewoP
5.11redliuBrewoP 22
:
redliuBrewoP sepytatad .1
redliuBrewoP ( epocs) .2
(]eman[_]xiferp[]epocs[) redliuBrewoP .3
kram_me, eman_ts, tixe_bc, eman_els: redliuBrewoP slortnoC .4
redrObaT .5
tnemetatseslefi .6
tcejbo snoitcnuf stneve tod .7
llunsi mirt bp snoitcnuf .8
enil g+tfihS+lrtC .9
. epytataD epytatad : gnitsac .01
tlah .11
.:... *
... *
.. *
*
*
*
... *
*
),( ( .)
-
0102 5.11redliuBrewoP
5.11redliuBrewoP 32
(redliubrewop )
redliuBrewoP ( detneirOtcejbO) OO
redliuBrewoP redliuBrewoP . (snoitcnufdna,stneve,seitreporp) )cte,unem,wodniw( tcejbo ( ecnatirehni)
saevas kcilcthgir tirehni tcejbO
redliuBrewoP OO
(BP ) .1
( wodniWataD ) +( bp ) .2
(TEN.otyolped(+)redliubtekcop) .3
( elpmaxEevil )
noitaluspacnE
ssalc etubirtta dohteMteG
dohteMteS sdohteM
.
msihpromyloP
dohteM ssalC ssalC
:
ssalc dohtem .
ssalc . ( ) ssalc
. 4
-
0102 5.11redliuBrewoP
5.11redliuBrewoP 42
!!! redliuBrewoP
redliuBrewoP
PHP,TEN.,AVAJ .1.
noitacilppArevreS/tneilC .2 TEN.PSA ee2J redliubrewop
TEN. ee2j redliubrewoP ten.PSA BP FSJ wd
-
0102 5.11redliuBrewoP
5.11redliuBrewoP 52
smrof bP .3 sniks stroper
. (IUGdecnavdA) redliubrewop5.11 stnanopmoc
BP ()yolped
txen draziWnoitacilppA tcejorp wen
.
egakcapemitnurredliuBrewoP . BP lld
-
0102 5.11redliuBrewoP
5.11redliuBrewoP 62
.
.
bp ( noitatnemucod5.11redliuBrewoP) skoobyS .1. esabyS
moc.liamtoh@takarabrimat
moc.rdbp.www .2
/sys.jdbp//:ptthmoc.noc .3
/bi/gro.guobara.www//:ptth .4
mth.spit/hcethgih/moc.hceteerttfos.www//:ptth .5
, .
moc.liamtoh@takarabrimaT
repolevedbP
010285
top related