HPAD*Bÿÿ0ÛJ|*“#B~hj•^s%8À�”ÁZžv 'Bº}Ø•ZÅ4¤ž¨þi(x],BI~ê–ZÅ4ÄžÌþi(xú/B?~ê–ZÅ4àžäþi(xö3Bó}ê–ZÅ4Àžèþi(xi8B´€ê–ZÅ4øžüþi(xh:BÌ�Ø•ZzJˆžŒ³(x î<B¡‘ê–ZzJž³(x  @B•‘Ø•ZzJ¤žl³(x ÓAB*„ê–ZÇ5øžìk(xzGBs€ê–ZÇ5àžðk(xgMBˆ{ê–ZÅ4pžlþi(xêQB¡{ê–ZÅ4Pž´þi(x@VB¹{ê–ZÅ4Ôžäþi(x¥YB~ê–ZÅ4$ž(þi(x&ö^þiê–?Å4Dž(x'1bþiê–?Å4Dž(x(¦dþiê–?Å4Dž(x)gþiê–?Å4Dž(x*1lþiê–?Å4Dž(x+ÇžBÛ|ê–ZÅ4¤ž¨þi(xh¡é^ê–?°)`À�(x?‹¤é^ê–?°)HÀ�(x=¿¦Bÿ|ê–ZÅ4Œž�þi(x!›ªB}ê–ZÅ4ˆžÐþi(x"Ÿ®°(SFré^ê–?°)@À�(xB¨±þiê–?Å4Dž(x2¾¼MZ ÿÿ™°= 4*0*k3 çÒ�}rgB& ) - 1 3 7 ; > R d l ~ U‹ìƒìV¸*ŽØÿvÿvš ‰Fø‰Vú‹F@Pš ‰Fü‰VþÿvÄ^ü&ÿw&ÿ7ÿ6€šCƒÄÄ^ü&Ä‹v&ƸPÿvúÿvøÿvþÿvüš ÿvúÿvøš ÿvþÿvüš ^‹å]Â�U‹ìƒì¸*ŽØƒ~t¸‹å]Ë�F‰FêŒVìƒFêÄ^ê&‹Gü&‹Wþ‰Fð‰VòƒFê‹^ê&ÿwþ&ÿwüš ‰Fî+ÀPÄ^ð&ÿw&ÿ7šƒÄ£€+ÀP‹Fî‹ÈÑàÁÑàÑà™RPÿ6€šuƒÄ¸ P�FôPÿ6€šCƒÄ+ÀPÿvöÿvôÿ6€šuƒÄ¸Pÿvøè½þ¸Pÿvúè²þ¸Pÿvüè§þ¸Pÿvþèœþÿ6€š/ƒÄé'ÿ�U‹ì´=ŠF ÅVÍ!s¸ÿÿ]ËU‹ì´<3ÉÅVÍ!s¸ÿÿ]ËU‹ì´>‹^Í!¸s¸ÿÿ]ËU‹ì´?‹^ÅV‹N Í!s¸ÿÿ]ËU‹ì´@‹^ÅV‹N Í!s¸ÿÿ]ËU‹ì´BŠF ‹^‹V‹N Í!]ËU‹ìÅV´AÍ!]˰鈰郰 é~°éy°étì.*N h *p*" ¸*ŽØºN´ Í!¸LÍ!VW¸*ŽØ¾q¿qè#_^š )ËVW¸*ŽØ¾q¿qè _^š)Ë;÷sƒï‹ EtòÿëîÃ2ä.ÿ.#Ë�Ë�commandsyntaxdescriptionexamplesreadHelp$*ˆFFFFFFFFThis program requires HyperPAD. $READHELPÈ G-=5Handler Select; Begin go to page 1; End; Ò�=71*H žíIndexrevented, Press ENTER±‡±‡1‡pÿ‡O[2B:Handler Select; Begin doMenu "Previous"; End; ÒžB7Previous   è:*H&Ôž€PGUP=Prevented, Press ENTER±‡±‡1‡pÿ‡OS.>6Handler Select; Begin doMenu "Next"; End; Òž>7Next   è:*H*4ž'PGDN=Nextented, Press ENTER±‡±‡1‡pÿ‡OU5E=Handler Select; Begin go to pad "helpnote"; End; ÒžE7helpnote *H;DôžÆNotebookented, Press ENTER±‡±‡1‡pÿ‡OD'7/Handler Select; Begin cancel; End; Òž77X  :*HFOìžgESC=Exitmented, Press ENTER±‡±‡1‡pÿ‡OB%5-Handler Select; Begin help; End; Ò�57X  ï:*HFN°À�÷F1=Helpmented, Press ENTER±‡±‡1‡GGpÿ‡O‡4V<handler closepad; begin global LastHelpPage; push this page; pop page into LastHelpPage; end; handler openpad; begin if not fromHelp() then push recent; pass; end; handler cancel; begin pop page; end; handler domenu(d); begin if d is "Next" then begin set the focus to background button id 4; if the currentObject is "bkgnd button id 4" then pass; end else if d is "Previous" then begin set the focus to background button id 3; if the currentObject is "bkgnd button id 3" then pass; end else pass; end;åžVäsŽè”7`]_�lasthelppageXXX*7X fromhelp;:y‘/*7^*87NextX+,X4O hbkgnd button id 4X  Q:+/$=PreviousX+,X3O hbkgnd button id 3X  Q:+/$/*ùÏ&‚ HyperPAD 2.2¨ Brightbi‚l-Roberts & Co.‚‚± PADtalk Help À±ÚÎÄ¿³Î‚³Î‚³Î‚³Î‚³Î‚³Î‚³Î‚³Î‚³Î‚³Î‚³Î‚³Î‚³Î‚³Î‚³Î‚³Î‚³Î‚³Î‚³Î³ÀÎÄÙÑUse TAB to highlight a bu‚t on, then pre‚s ENTER.ŸÐp‚‡Ž0À‡ÿÿÿÿÿÿÿÿÿÿÿÿÿíÐ0)@…˜6Ý|­;J40@8handler select; begin go to page id 4; end; Òž@74*H‡ #  À�¾Object Hierarchy‡±‡±‡‡‡‡‡‡‡1 ‡pÿ‡L41A9handler select; begin go to page id 14; end; ÒžA714*H‡ ¬À�TMessagesperators‡±‡‡‡‡‡‡‡1 ‡pÿ‡J40@8handler select; begin go to page id 9; end; Ò�@79*H‡´À�ìOperatorsgesbackgrounds‡‡‡‡1 ‡pÿ‡L41A9handler select; begin go to page id 23; end; Ò�A723*H‡¤À�‚Functionsesbackgrounds‡‡‡‡1 ‡pÿ‡L41A9handler select; begin go to page id 26; end; Ò�A726*H‡8À�Commandsrysbackgrounds‡‡‡‡1 ‡pÿ‡L41A9handler select; begin go to page id 38; end; Ò�A738*H‡”À�²Propertiessbackgrounds‡‡‡‡1 ‡pÿ‡L41A9handler select; begin go to page id 35; end; Ò�A735*H‡% % lžJControl Structuresrounds‡‡‡‡1 ‡pÿ‡L41A9handler select; begin go to page id 59; end; Ò�A759*H‡'  „À�âChunkingtructuresrounds‡‡‡‡1 ‡pÿ‡L41A9handler select; begin go to page id 37; end; Ò�A737*H‡(ŒÀ�zColorsgtructuresrounds‡‡‡‡1 ‡pÿ‡L41A9handler select; begin go to page id 29; end; Ò�A729*H‡)hÀ�Constantsructuresrounds‡‡‡‡1 ‡pÿ‡L41A9handler select; begin go to page id 50; end; Ò�A750*H‡*xÀ�ªKeysantsructuresrounds‡‡‡‡1 ‡pÿ‡H+@4äžBCover Upan expense sheetet͸³! pÿgL41A9handler select; begin go to page id 65; end; Ò�A765*H‡,¸À�–Ordinalstructuresrounds‡‡‡‡1 ‡pÿ‡L41A9handler select; begin go to page id 34; end; Ò�A734*H‡-  ÌÀ�.Objectstructuresrounds‡‡‡‡1 ‡pÿ‡L41A9handler select; begin go to page id 62; end; Ò�A762*H‡.ÐÀ�ÆScriptssructuresrounds‡‡‡‡1 ‡pÿ‡L41A9handler select; begin go to page id 33; end; ÒžA733*H‡/  ´ž^ Containersucturesrounds‡‡‡‡1 ‡pÿ‡800H0˜À�$##Chapter 2, page 13 Chapter 2, page 24 Chapter 7, page 60 Chapter 1, page 7 Chapter 3, page 29 Chapter 4, page 41 Chapter 6, page 51 Chapter 7, page 59 Chapter 8, page 63 Chapter 9, page 69 Chapter 10, page 73 Chapter 11, page 99 Chapter 12, page 145 Chapter 13, page 219 Appendix 2, page 291P‡0@)?‡±‡±‡±‡±‡±‡±‡±‡±‡±‡±‡ÄÄÄÄÄÄ!pèÀ�ÿÿpÿŒd$ô Index ý„ ‡Topic:ˆ„ ƒ$Location in PADtalk Reference Guide:„ÃÎÄ´ÿÿÿÿÿÿÿÿÿÿÿÿÌô‡0öÎ0ÿÿÿÿÿÿÿÿÿÿÿÿÿžY‚" 1 ¢8Ðh˜0È`øLä| ¬ ö 0"H@4¨žk#Cover Upan expense sheetet͸³! pÿgHÀ„ï Object Hierarchy ÿÃ"EventsgeneratedfromthekeyboardˆÚÄOR‚Ä‚ÄOR‚Ä¿’ormousearetranslatedtome‚sages‡³ˆ³‰³‰Oˆ whicharepa‚sedalongtheobject‰³†Bu‚ton„Field‡Bˆhierarchystartingwiththecu‚rent„Ú‚Ä´ˆÀ„Ä„ÄÙ‰Jˆbu‚ton,field,orpage.�³‚³�ŽE¯³‚ÀŠÄPageŒC¯�³ŽT‡É¢Í»Üƒ³Œ Background‘º‚Keyboard…MouseŽº„³�³ŽH‡º…³‹³�º„³�Pad�I‡º…À…ÄÂ…ÄÙ�º„³�³ŽE‡º‰Event”º„‹ PadResources‡R‡º‹³‚Ú¿Ú¿ƒ‰Ü„º„³�³ŽA‡º‹ÀÄ¿„³ÚÄMe‚sage‰ÄÙ�HomePadŠR‡º�ÀÙÀÙÀÙ‚‰ß„º•³ŽC‡ºŠ (translated)Œº�HomePadResources…H‡È¢Í¼•³ŽYˆ¤ß‘HyperPADÿÿ‚ï’0ÿÿÿ•ˆp‚‡pÿæ†p㤗�Œp�‚—Špƒ—‡pŽ—«¤—’…p”¤—«‰—‡p”—ŽŽp�¤—«–—‰p…—‘Šp‘¤—«¤—‹”pŒ¤—¬§�Špÿÿ¿#u#L1A9handler select; begin go to page id 18; end; ÒžA718*HNž 'New Buttonževious"pÿL1A9handler select; begin go to page id 19; end; ÒžA719*H N$ž¸'New Buttonževious"pÿL1A9handler select; begin go to page id 20; end; ÒžA720*HNHžP(New Buttonževious"pÿH@&¼žè(Cover Upan expense sheetet͸³! pÿgÛ@ì Me‚sages: Su‚mary ñ³Me‚sagesSenttoaBu‚ton:³³ÃÎÄ ´³closeBu‚ton‡ mouseDown…mouseSti‚lDown„newBu‚ton•deleteBu‚ton† mouseEnter„mouseUp‹openBu‚ton’³keyPre‚sŠ mouseLeave„ mouseWithin‡select•³ÃÎÄ´³Me‚sagesSenttoaField:´³ÃÎÄ´‚ closeFieldˆmarkŠ mouseLeaveˆ mouseWithin„select†³‚ deleteField‡ mouseDown…mouseSti‚lDown„newField‡unmark‡³keyPre‚sŠ mouseEnter„mouseUp‹ openField’³ÃÎÄ´³Me‚sagesSenttoaPage¶³ÃÎÄ´³break� deletePad…keyPre‚sŠnewPad‰startupˆcancelŒ deletePage„ mouseDown‰newPageˆsuspendˆclosePadŠdoMenuˆmouseSti‚lDown„openPad— closePage‰helpŠmouseUp‹quitšdeleteBackground‚idleŠ newBackground…resumeÿÿˆì“0òÍ0Ô¼”¼”¼ãÍ0ÔÇ‰Ç‰ÇØÍ0ÔȈȈȈȈÈÿ÷!<)n'(ž(ò(xP$ì Me‚sages: Sent to Bu‚tons ëMe‚sage:‰ Description:±ÃÎÄ´‚closeBu‚ton†(sentwhenthefocusisremovedfromabu‚ton“deleteBu‚ton…sentbeforeabu‚t onisdeleted keyPre‚s‰senttothebu‚t#onwiththefocuswhenakeyispre‚sedˆ mouseDownˆsentwhenmousebu‚t onispre‚sedwithinthebu‚t on'sarea… mouseEnter‡'sentwhenthemousepointerentersabu‚t on'sarea� mouseLeave‡'sentwhenthemousepointerleavesabu‚t on'sarea�mouseSti‚lDownƒsentwhilethemousebu‚tonishelddown—mouseUpŠsentwhenthemousebu‚tonisreleased™ mouseWithin†-sentwhilethemousepointeriswithinthebu‚t on'sarea‡newBu‚tonˆsenttoanewbu‚tonjustafteritiscreated’openBu‚ton‡sentwhenabu‚tonfirstreceivesthefocus”select‹.sentwhethemouseisreleasedorENTERispre‚sedÿÿÿÿÿ�ì›0êÎ0ÿÿÿÿÿÿÿÿÿÿÿÿÿž€,ÿÿç¿$ì Me‚sages: Sent to Fields ìMe‚sage:‰ Description:±ÃÎÄ´‚ closeField‡)senttoafieldwhenthefocusisremoved– deleteField†sentbeforeafieldisdeleted¡keyPre‚s‰2senttothefieldwiththefocuswhenakeyispre‚sed‰mark�2senttolist-boxfieldswhentheusermarksaline� mouseDownˆ-senttolockTextfieldswhenthemouseis pre‚sedŽ mouseEnter‡1sentwhenthemousepointerentersafield'sareaŽ mouseLeave‡1sentwhenthemousepointerleavesafield'sareaŽmouseSti‚lDownƒ*senttolockTextfieldswhilethemousebu‚t onispre‚sed†mouseUpŠ)senttolockTextfieldswhenthemousebu‚tonisreleased† mouseWithin†-sentwhilethemouseiswithinafield'sarea’newField‰,senttoanewfieldjustafteritiscreated“ openFieldˆ*senttoafieldwhenitreceivesthefocus•select‹6senttolockTextandlist-boxfieldswhenENTERispre‚sed…unmark‹/senttolist-boxfieldswhenalineisunmarkedÿÿÿñìš0ëÎ0ÿÿÿÿÿÿÿÿÿÿÿÿÿž 0ÿÿ^6$ì Me‚sages: Sent to Pages íMe‚sage:‰ Description:±ÃÎÄ´‚breakŒSentwhenCTRL+BREAKispre‚sed cancel‹SentwhenESCispre‚sed§closePad‰9Sentwhenpadisclosed(goingtoanotherpadorexiting)† closePageˆ%SendwhenthepageisabouttochangešCdeleteBackgroundSentbeforeabackgroundisdeleted(bydeletinga‚lpages)„ deletePadˆ6Sentbeforeapadisdeleted(usingFile-DeletePad)‰ deletePage‡8Sentbeforeapageisdeleted(usingEdit-DeletePage)‡doMenu‹$Sentwhentheuserselectsamenuco‚mand–help�Sentwhentheuserpre‚sesF1orselectsGo-Help�idle�Sentwhennothingelseisha‚peningœkeyPre‚s‰Sentwhenakeyispre‚sedandnoobjecthasfocus� mouseDownˆSentwhenthemousebu‚t onispre‚sedonthepageŽmouseSti‚lDownƒSentwhilethemousebu‚tonishelddown—mouseUpŠSentwhenthemousebu‚tonisreleasedonthepage� newBackground„-Senttoabackgroundjustafteritiscreated’newPad‹&Senttoapadjustafteritiscreated™newPageŠ'Senttoapagejustafteritiscreatedÿÿˆì™0ìÎ0ÿÿÿÿÿÿÿÿÿÿÿÿÿž 4ÿÿH@*4Pž|8Cover Upan expense sheetet͸³! pÿg–n$ì Me‚sages: Sent to Pages íMe‚sage:‰ Description:±ÃÎÄ´‚openPadŠ%Senttoapadjustafteritisopenedšquit�Sentwhentheusera‚t emptstoquitœresume‹Sentuponreturningfromru‚ninganotherprogram�startupŠ4SentwhenHyperPADisrunforthefirsttimeinase‚sion†suspendŠ)SentbeforeHyperPADrunsanotherprogramÿÿÿÿÿÿÿÿÿÍì™0ìÎ0ÿÿÿÿÿÿÿÿÿÿÿÿÿžÐ8†8H@& ž:Cover Upan expense sheetet͸³! pÿgñ$è Operators: Numeric� è ³Operator:„ Description�Example:‘Result:…³ÃÎÄ´³()Š parentheses�2*(3+4)’14г‚-Œnegation“-(4+6)“-10Œ^Œexponentiation�2^3–8Ž/Œdivision“10/5•2Ž*Œmultiplication�7*8–56�modŠ remainder’5mod3’2ŽdivŠintegerdivision‹10div4‘2Ž+Œa‚dition“18+5“23�-Œ subtraction�20-6“14�&Œ concatenationŽ"this"&"that"Šthisthat‡‚&‹concatenationwithspaceƒ"this"‚&"that"‰ thisthatÿÿÿÿÿÙè 0éÎ0ÿÿÿÿÿÿÿÿÿÿÿÿÿžÓ:‰:Û$è Operators: B‚olean� è ³Operator:„ Description�Example:‘Result:…³ÃÎÄ´³>Œ greaterthan�10>6“TRUE‹>=‹greaterthanorequal†"this">="that"‰FALSEŠ<Œle‚sthan’5<4”FALSEŠ<=‹le‚sthanorequal‰"he‚l o"<="there"‡TRUE‹isinˆ inclusion’"el"isin"he‚lo"‡TRUE‹ isnotin„ exclusion’"el"isnotin"he‚lo"ƒFALSEŠcontains… inclusion’"he‚lo"contains"el"„TRUE‹=Œequal–"this"="that"ŠFALSEŠ<>‹ notequal’"this"<>"that"‰FALSEŠis‹equal–"this"is"that"‰FALSEŠisnot‡ notequal’ 10isnot6ŽTRUE‹andŠ logicaland�TRUEand(10=6)ˆFALSEŠor‹ logicalor‘TRUEor(10=6)‰TRUE‹notŠ logicalnot� not(56>78)ŒTRUEÿÿÿìè 0éÎ0ÿÿÿÿÿÿÿÿÿÿÿÿÿž=ÿÿH@*4tž@Cover Upan expense sheetet͸³! pÿg`6&è Operators: Order of Precedence ÿÈڱĿ�³Order:‡ Operator(s):—³�ñÄ´�³1Œ()¡³�³2Œ-,notž³�³3Œ^¢³�³4Œ /,*,mod,div˜³�³5Œ+,- ³�³6Œ&,‚&Ÿ³�³7Œ!>,>=,<,<=,isin,isnotin,contain‚³�³8Œ=,<>,is,isnot•³�³9Œand ³�³10‹or¡³�À±ÄÙÿÿÿÿÂè 0ÿÿš±0ÿÿÿÿÿÿÿÿÿÿÿÿ‹q@'@L41A9handler select; begin go to page id 50; end; ÒžA750*H0& ( TžêAkeyButton0 0 0±‡±‡±‡ÄÄÂÄÄÄ1pÿH@&Øž‚BCover Upan expense sheetet͸³! pÿg¢|"ì Functions: By Name… ¯Â�ÂŽÂ�Â�abs�³cu‚rentObject³filesˆ ³mouseBu‚ton³rightString„acos޳cu‚rentPad„ ³filesSize„ ³mouseClick‚³roundŠaltKeyŒ ³cursorLoc… ³findFile…³mouseExists³scr‚enHeightƒa‚nuity‹ ³cursorX‡³fr‚eSize… ³mouseLoc„³scr‚enWidth„a‚pendŒ ³cursorY‡³fr‚emem†³mouseX† ³secondsˆasin޳dateгfu‚lName…³mouseY† ³shiftKey‡atanŽ ³directory…³graphicsCard³numToCharƒ³sinŒaverage‹³dirsŠ ³isSound† ³numberofƒ³sqrt‹ charToNum‰ ³diskSpace…³keyгo‚fset†³stdevŠch‚oseŒ ³dosVersion„ ³leftStringƒ³openˆ ³substitute…clean�³drive‰³length‡³param‡³sumŒco‚mandLine‡³drivesˆ³ln‹ ³paramCount‚³tanŒcompoundŠ ³environmentƒ³ln1гparams†³target‰coproce‚sor‡³exp‹ ³longDate…³popup‡³time‹cos�³exp1Š ³longFiles„ ³product…³truncŠcpu�³exp2Š ³longTime…³proper†³u‚perŠcreateŒ³factгlowerˆ³random† ³variance‡ctrlKey‹ ³fileExists„³maxŠ ³repeatChar‚ ³versionˆcu‚rentBackground³fileOpen†³minгresult†³¢Á�ÁŽÁ�Áÿ°ì˜0ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÚÖB8BŒBL41A9handler select; begin go to page id 50; end; ÒžA750*H0,.øž•GkeyButton0 0 0±‡±‡±‡ÄÄÂÄÄÄ1pÿH@*4ž-HCover Upan expense sheetet͸³! pÿgä @ì Functions: By Category ªÂŽÂŒ‹šComputer… ³Conversion„³DOS‰³Misc.† ³PadInfo’coproce‚sor‚ ³charToNum…³a‚pend†³ch‚ose…³cu‚r entBackground‰cpuŠ ³numToChar…³co‚mandLine³param†³cu‚r entObject� cursorLoc„ ³Financial…³create†³paramCount³cu‚rentPad�cursorX†³a‚nuity‡ ³directoryƒ³params…³fr‚eSize’cursorY† ³compound†³dirsˆ³popup†³isSound“fr‚emem†³stdev‰ ³diskSpaceƒ³result… ³numberof‘graphicsCard³variance† ³dosVersion‚ ³Keyboardƒ³target”mouseBu‚ton‚³TextHandling³drive‡³altKey…³version“ mouseClickƒ³clean‰³drives†³ctrlKey„³Math– mouseExists‚ ³leftString„³environment³keyˆ³abs†exp2…roundƒmouseLoc…³lengthˆ ³fileExists‚ ³shiftKeyƒ³acos…fact…sin…mouseX‡³lower‰ ³fileOpen„ ³Date/Time‚³asin…ln‡sqrt„mouseY‡³o‚fsetˆ³files‡³date‡³atan…ln1†sum…scr‚enHeight³properˆ ³filesSizeƒ ³longDateƒ³average‚max†tan…scr‚enWidth‚ ³repeatChar„ ³findFile„ ³longTimeƒ³cos†min†trunc� ³rightStringƒ³fu‚lName„³seconds„³exp†product— ³substitute„ ³longFilesƒ³time‡³exp1…random˜³u‚per‰³openˆ³‹³§ÁŽÁŒÁ‹Áÿºì˜0í�0Ž0Œ0‹0˜0ÿ±Ž0ÿÿЋ0©Ž0ê˜0ÿÍ‹0ÿÿÿÿÿï�HãG7HH@& ž‚MCover Upan expense sheetet͸³! pÿgê$ó Co‚mands ô Co‚mand:� Description:ª ƒa‚d”a‚d a number to a containeržanswer‘&ask a question - the user selects a bu‚ton�ask”.ask a question - the user types in a response ‹close’/close a file opened with open(), create(), or a‚pend()ƒconvert�(convert a date or time to another format‘delete‘delete a chunk from a containeršdial“dial the phone for voice co‚munications with a modem…divide‘divide a container by a number›do•execute a PADtalk co‚mand  edit scriptŒedit the script of an object�find“5find text anywhere in a pad, or restricted to a field„ flushCache�!empty the internal page cache, fr‚e ing up memory‰fxshow‘1execute FXSHOW.EXE, displaying a graphics or showˆget”(put a value into the local variable "it"‘global‘*declare some global variables (usable by a‚l scripts)„go•go to another page or pad hide“3hide an object - sets its visible property to false†hilite‘3highlight a chunk of text in a field or the msg boxÿõóŠ0ôÎ0ÿÿÿÿÿÿÿÿÿÿÿÿÿžÖMŒM=$ó Co‚mands õCo‚mand: � Description:­multiply�multiply a container by a valuešnoSound�stops music (the play co‚mand) or any soundŽplay“+plays a sequence of notes in the backgroundŽplayBack�.starts replay of keys saved with the record co‚mand†pop page�,goes to the last page saved with the push co‚mandˆprint’ prints text or a series of pages™ push pageŽ-saves a page on the page stack for later reca‚lŠquery‘5 creates a subset of pages based on provided criteria…read“/reads data from a text file opened with open().Šrecord‘%records keystrokes for later playback”run“ runs another program¥send’ sends a me‚s$age and parameters to another object‰set”"sets an object property to a value—setDefaultPopupColors‚3sets the colors of subsequent popups to the default†setPopupColors‰'changes the colors of subsequent popups’show“3shows an object - sets the visible property to true†sort’ sorts the pad a‚cording to a field's content�sound’&starts a sound from the system speakerÿÿƒóŠ0ôÎ0ÿÿÿÿÿÿÿÿÿÿÿÿÿžRÿÿH@*4ØžSVCover Upan expense sheetet͸³! pÿgüÐ(ó Co‚mands õCo‚mand:� Description:­subtract�#subtractsanumberfromacontainer–visual‘setsupavisuale‚fectforthenextpagechange‰wait“delaysaspecifiednumberofmi‚liseconds�write’/writesdatatoafileopenedwithcreate()ora‚pend()³Î³ÃžÄ SpecialCo‚mandsžÄ´Ï³‚Co‚mand:� Description:­exit“terminatesexecutionofthecu‚renthandleror¢functionandstopstheme‚sage'stravelalongtheŸ hierarchy°exittoHyperPAD‡ terminatesa‚lpendinghandlersorfunctions�pa‚s“terminatesexecutionofthecu‚renthandlerandpa‚sesštheme‚s*ageontothenextobjectinthehierarchy‡send“ sendsame‚s&ageandparameterstoanotherHyperPADžobjectÿÿÿÄóŠ0ôÎ0ÿÿÿ³’0ðÎ0ÿÿÿÿÿÿÿÿ™§V]VH@&àž¼YCover Upan expense sheetet͸³! pÿgä¼$é Properties: GlobalŠ ì Property:‰ Example:“‰ ‚Range of values:‡asc‚iChar‰ ³set the asc‚iChar to charToNum("A");³0‚.2‚5(ASC‚I)‰autoSaveгset the autoSave to true; ‹ ³true,false�baud޳set the baud to 12‚0;�³3‚0,12‚0,24‚0,96‚0…cu‚r entDirectory‚ ³set the cu‚rentDirectory to "C:\";ƒ³any valid directory„cursorŒ³set the cursor to thin;Ž ³thin,fat,o‚f‹ cursorLoc‰³set the cursorLoc to 10,12;гX:1‚.80, Y:1‚.HeightƒdataBitsгset the dataBits to 7;�³7,8”fileSortMethod„³set the fileSortMethod to 4;‰³1‚.8“focus�³set the focus to page bu‚ton id 4;ƒ³any bu‚t on or field„lockMe‚sages†³set the lockMe‚s ages to true;ˆ ³true,false� lockRecentˆ³set the lockRecent to false;‰ ³true,false�lockScr‚enˆ³set the lockScr‚e n to true;Š ³true,false�markerA‚trˆ³set the markerA‚tr to black on white;³0‚.2‚5‘ markerCharˆ(³set the markerChar to charToNum("");³0‚.2‚5 (ASC‚I)‰ maxDirtyPages…³set the maxDirtyPages to 20;‰³1‚.50’modem�³set the modem to "com1";�³"com1","com2"ŠmouseA‚tr‰³set the mouseA‚tr to ye‚low on blue;³0‚.2‚5‘ mouseChar‰(³set the mouseChar to charToNum("");³0‚.2‚5 (ASC‚I)šÄÁ¤ÄÁÿ¶é�0ëÎ0ÿÿÿÿÿÿÿÿÿÿÿÿÿžZÆY"ú$é Properties: GlobalŠ ì Property:‰ Example:“‰ ‚Range of values:‡ numberFormat†³set the numberFormat to "0.ƒ0‚#";ƒ ³(0).(0)(#)�paintA‚tr‰³set the paintA‚t r to white;г0‚.2‚5‘parityŒ³set the parity to even;޳even,o‚d,noneŠ printDevice‡³set the printDevice to "lpt1";‡³"lpt1","lpt2",›³¥³"com1","com2", or —³¥³any DOS filename‡printer‹³set the printer to on;�³on,o‚f‘6printerTranslation³set the printerTranslation to true;‚ ³true,false� selectedText†³set the selectedText to empty;‡³any text value‰stopBitsгset the stopBits to 2;�³1,2”ta‚bing‹ ³set the ta‚b ing to layer;Œ³layer,position‰ userLevel‰³set the userLevel to 7;޳1‚.7¥³¥³©³¥³©³¥³©³¥³©³¥³©³¥³¨ÄÁ¤ÄÁÄÿµé�0ëÎ0ÿÿÿÿÿÿÿÿÿÿÿÿÿž _ÿÿ`8$é Properties: Pad� ì Property:‰ Example:“‰ ‚Range of values:† cantDeleteˆ#³set the cantDelete of pad to true;ƒ ³true,false�name޳set the name of pad to "STU‚F.PAD";‚³any DOS filename -—³¥³in the same dirˆ cantModifyˆ³set the cantModify to false;‰ ³true,false�pa‚swordOnly† ³set the pa‚swordOnly to true;ˆ ³true,false�longNameгget the longName of pad;� ³(GET ONLY)�scriptŒ ³set the script of pad to empty;†³any valid script™³¥³©³¥³©³¥³©³¥³©³¥³©³¥³©³¥³©³¥³©³¥³©³¥³©³¥³¨ÄÁ¤ÄÁÿ¶é�0ëÎ0ÿÿÿÿÿÿÿÿÿÿÿÿÿžDbÿÿZ2$é Properties: Page/Background ì Property:‰ Example:“‰ ‚Range of values:‡ cantDeleteˆ1³set the cantDelete of pg 1 to true;³true,false�longNameŠ$³put the longName of pg 1 into msg;‚ ³(GET ONLY)�id�³put the id of page this page;‡ ³(GET ONLY)�nameŽ:³set the name of this page to "wow";³text up to 32 chars„longIDŒ³put the longID of this page;ˆ ³(GET ONLY)�scriptŒ7³set the script of this pg to empty;³any valid script™³¥³©³¥³©³¥³©³¥³©³¥³©³¥³©³¥³©³¥³©³¥³©³¥³©³¥³©³¥³¨ÄÁ¤ÄÁÿ¶é�0ëÎ0ÿÿÿÿÿÿÿÿÿÿÿÿÿž¹dÿÿß$é Properties: Bu‚tonŠ ì Property:‰ Example:“‰ ‚Range of values:‡a‚c eleratorColor‚ ³ set the a‚celColor of btn 1 tored;³0‚.2‚5‘a‚c eleratorKey„ ³set the a‚celKey of btn 1 to 65;„³0‚.2‚5 (ASC‚I)‰align�!³set the align of btn 1 to left;…³left,right,centered„ autoHiliteˆ1³set the autoHilite of btn 1 to true;³true,false� borderColor‡(³set the borderColor of btn 1 to red;³0‚.2‚5‘check�!³set the check of btn 1 to true;… ³true,false�color�³set the color of btn 1 to ye‚low;ƒ³0‚.2‚5� edgeTypeŠ!³set the edgeType of btn 1 to 2;…³1‚.15’hiliteŒ#³set the hilite of btn 1 to false;ƒ ³true,false� hiliteColor‡(³set the hiliteColor of btn 1 to red;³0‚.2‚5‘ hiliteIfFocus…1³set the hiliteIfFocus of me to true;³true,false�ID� ³put the ID of btn 10 into msg;„ ³(GET ONLY)�layer�³put the layer of btn "Home";ˆ ³(GET ONLY)�locationŠ ³set the loc of btn 1 to 10,10;†³scr‚en c‚ordinates…lockTextŠ$³set the lockText of btn 1 to true;‚ ³true,false�nameŽ"³set the name of btn 1 to "Home";„³text up to 32 chars„ rectangle‰*³set the rect of btn 1 to 1,1,10,10;³scr‚en c‚ordinates…scriptŒ7³set the script of btn 1 to field 1;³any valid script˜ÄÁ¤ÄÁÿ¶é�0ëÎ0ÿÿÿÿÿÿÿÿÿÿÿÿÿž(gÿÿöÎ$é Properties: Bu‚tonŠ ì Property:‰ Example:“‰ ‚Range of values:‡shadowŒ"³set the shadow of btn 1 to true;„ ³true,false�showNameŠ$³set the showName of btn 1 to true;‚ ³true,false�style�#³set the style of btn 1 to opaque;ƒ³opaque,transparent,–³¥ ³checkBox�visible‹$³set the visible of btn 1 to false;‚ ³true,falseŸ³¥³©³¥³©³¥³©³¥³©³¥³©³¥³©³¥³©³¥³©³¥³©³¥³©³¥³©³¥³©³¥³¨ÄÁ¤ÄÁÿ¶é�0ëÎ0ÿÿÿÿÿÿÿÿÿÿÿÿÿžDlÿÿöÎ$é Properties: Field‹ ì Property:‰ Example:“‰ ‚Range of values:‡a‚c eleratorColor‚ ³set the a‚celColor of fld 1 to red;³0‚.2‚5‘a‚c eleratorKey„ ³set the a‚celKey of fld 1 to 65;„³0‚.2‚5 (ASC‚I)‰align�!³set the align of fld 1 to left;…³left,right,centered„ autoHiliteˆ1³set the autoHilite of fld 1 to true;³true,false� borderColor‡$³set the borderColor of fld 1 to 5;‚³0‚.2‚5‘color�³set the color of fld 1 to ye‚low;ƒ³0‚.2‚5‘cu‚rentLine‡ ³put the cu‚rentLine of fld 1;‡ ³(GET ONLY)�edgeTypeŠ#³set the edgeType of fld 1 to 14; ƒ³0‚.15’fi‚lColor‰ ³set the fi‚lColor of fld 1 to 31;ƒ³0‚.2‚5‘hiliteŒ"³set the hilite of fld 1 to true;„ ³true,false� hiliteColor‡(³set the hiliteColor of fld 1 to 31;³0‚.2‚5‘ hiliteIfFocus…1³set the hiliteIfFocus of me to true;³true,false�ID�³put the ID of field 1;Ž ³(GET ONLY)� insertPoint‡(³set the insertPoint of fld 1 to 10;³1‚.number of chars…layer� ³put the layer of field "Name";† ³(GET ONLY)�locationŠ"³set the loc of field 1 to 10,10;„³scr‚en c‚ordinates…lockTextŠ$³set the lockText of fld 1 to true;‚ ³true,false�longIDŒ³put the longID of field 1;Š ³(GET ONLY)žÄÁ¤ÄÁÿ¶é�0ëÎ0ÿÿÿÿÿÿÿÿÿÿÿÿÿžOnÿÿ â$é Properties: Field‹ ì Property:‰ Example:“‰ ‚Range of values:‡longNameŠ1³put the longName of fld 1 into msg;³(GET ONLY)� markedLines‡³put the markedLines of fld 1;‡ ³(GET ONLY)�nameŽ"³set the name of fld 1 to "Home";„³text up to 32 chars„ nameColor‰$³set the nameColor of fld 1 to red;‚³0‚.2‚5‘ namePosition†/³set the namePos of field 1 to left;³left,top� rectangle‰*³set the rect of fld 1 to 1,1,10,10;³scr‚en c‚ordinates…scriptŒ#³set the script of fld 1 to empty;ƒ³any valid script‡showNameŠ$³set the showName of fld 1 to true;‚ ³true,false� startLine‰#³set the startLine of fld 1 to 10;ƒ³1‚.number of lines…style�#³set the style of fld 1 to opaque;ƒ³opaque,transparent,–³¥³scro‚l ing,listBox†value�³set the value of fld 1 to "he‚lo";‚ ³any text�visible‹$³set the visible of fld 1 to false;‚ ³true,false�withEdgeŠ1³set the withEdge of field 1 to true;³true,falseŸ³¥³©³¥³©³¥³©³¥³¨ÄÁ¤ÄÁÿ¶é�0ëÎ0ÿÿÿÿÿÿÿÿÿÿÿÿÿžZsÿÿH@*4�À�ywCover Upan expense sheetet͸³! pÿgí,é Properties: Me‚sage Box… ì Property:‰ Example:“‰ ‚Range of values:‡locationŠ#³set the location of msg to 10,10;ƒ³scr‚en c‚ordinates…width�³set the width of msg to 40;‰³4‚.scr‚enWidth‰visible‹!³set the visible of msg to true;… ³true,falseŸ³¥³©³„ Properties: T‚ol Boxˆ „³©³¥³— Property:‰ Example:“‰ ³Range of values:‡locationгset the loc of the t‚ol box to 1,6;³scr‚en c‚ordinates…visible‹³put the visible of the t‚ol box;„ ³true,falseŸ³¥³©³„ Properties: Menu/Status Bar „³©³¥³— Property:‰ Example:“‰ ³Range of values:‡visible‹"³put the visible of the menu bar;„ ³true,falseŸ$³put the visible of the status bar;‚³©³¥³©³¥³©³¥³¨ÄÁ¤ÄÁÿ¶é�0ëÎ0ÿÿÜ�0ëÎ0ÿÿŒ�0ëÎ0ÿÿÿÿÿ†ÍwƒwH@&(ž{Cover Upan expense sheetet͸³! pÿgà¬0î Control Structures ÀÄ®The if conditional:޳The case conditional: —if i > j then b‚ep;޳case MyVariable of¼³‚ 10‹ : go to page 4;�if i > j and field 1 < 6 then„³‚ page field 2 : begin—‚ beginš³…Œ ƒ go to page 5;‘b‚ep;˜³„‚ Š ƒ answer "He‚l o There";‰ go to page 2;�³‚‚ ‚‹ ‚end;™end;›³‚ "Over There" : b‚ep¹³‚ otherwise„ : answer "Not There";‰ if i > j then”³end;©‚ begin‚ ˜³²b‚ep;˜)³answer "Ok to quit" with "Ok","Cancel";Š go to page 2;� ³case it of¥endœ³ƒ "Ok" : pa‚s;Ÿelse�³ƒ"Cancel" : exit;�beginš³ƒotherwise : exit;ž answer "f‚oey";޳end;­ go to page 3;�³°end;›³ÎÄÁÄÿÌî”0ï…0‚4›0…0„4¡0ÿÿÿÿÿÿÿÿÿÿÿÿÿŸW{ {Ÿk0î Control Structures ÀÄ® The while‚.do L‚op� ³The repeat‚.until L‚op–while the shiftKey is down do…#³repeat until the shiftKey is down;‹‚ go to the next page;Œ³Ï³repeat§while i < j do”³‚ go to the previous page;“‚ begin›&³until page field 1 contains "Lawyer";Š‚ go to the next page;г±a‚d page field 1 to i;ˆ³¯end;œ³repeatɳ‚a‚d 1 tofield 1;šwhile page field 1 <> "Jim" do„³‚delete the last char of it;�‚ begin›)³until the last char of it is in field 1;‡‚ put line i of field 2 into„³±‚ page field 1;�³±a‚d 1 to i;“³¯end;œ³Ï³Ï³Ï³ÎÄÁÄÿÌî”0ï…0‰4”0…0�4™0ÿÿÿÿÿÿÿÿÿÿÿÿÿžP~ÿÿH@*4 ž�Cover Upan expense sheetet͸³! pÿg³‡(î Control Structures ÀÄÂÄ­ The for L‚op•³­for i = 1 to 10 do�³­‚ go to page i;“³Ï³­for i = 10 down to 1 do‹³­‚ go to page i;“³Ï³­for i = 1 to 10 do�³­‚ begin›³±visual e‚fect scro‚l left;„³± go to page i;‘³¯end;œ³Ï³­for i = 1 to 1‚0 step 10 do‡³¯begin›³±visual e‚fect scro‚l left;„³± go to page i;‘³¯end;œ³Ï³ÎÄÁÿÍî”0ï…0ƒ4š0ÿÿÿÿÿÿÿÿÿÿÿÿÿÊX��H@&pÀ�$ƒCover Upan expense sheetet͸³! pÿgI :è Chunking: Simple Expre‚sions‚ ¾Ä‚ĩ Sample Field:–³‚Chunk Operator:‚ Delimited By:‹É¡Í»³‚ characterˆ charactersŽºJohn Q. Smith”º³‚word�spaces, end of lines„%º120, East Washington St., Rm 421º³‚item�co‚mas (,)ŽºSyracuse, NY 13202�º³‚line� end of linesŒ ºshrimp, sca‚lops, fruit, onions‚º³«È¡Í¼³¨³¦À¨Ä´³Example Chunk Expre‚sion:“… ‚Result:–put char 1 to 4 of field 1;˜John™"put the last character of field 1;‘sœput item 2 of field 1;� East Washington St.‰put line 3 of field 1;�Syracuse, NY 13202‹put word 3 of field 1;�Smith˜put word 3 to 4 of field 1;˜SmithË120šput item 6 to 7 of field 1;˜sca‚l ops, fruitŽput the last item of field 1;–onions—put any word of field 1;›NYÿÿ‹èŸ0ë�p—§0ƒ£�­£�­£�­£�­£�­£�üÎ0ÿÿÿÿÿÿÿÿ™xƒ.ƒ3õ:è Chunking: Complex Expre‚sions ë Sample Field:—%Complex chunking evaluates from right†É¡Í»‚to left:£ºJohn Q. Smith”º­#º120, East Washington St., Rm 421º‚$char 1 of word 4 of line 5 to 6 ofƒ.„ºSyracuse, NY 13202�ºƒ‚ 1. get line 5 to 6 of sourceŒ ºshrimp, sca‚lops, fruit, onions‚º…2. get word 4 of that resultŒÈ¡Í¼…3. return char 1 of that result׳Example Chunk Expre‚sion:† Ž… Result:–%put char 3 to 4 of word 6 of field 1;‡ƒ „sh› put item 2of line 4 of field 1;“sca‚lops•/put char 1 to 2 of item 2 of line 4 of field 1;„sc›.put 1 + word 2 of item 2 of line 3 of field 1;…13203˜*put word 3 to 4 of line 3 to 4 of field 1;‰13202Ëshrimp,–&put word 1 of char 1 to 20 of field 1;�JohnÿÿÿúèŸ0ë�pÁ£�­£�­£�‚ª£�­£�­£�üÎ0ÿÿÿÿÿÿÿÿ™Ú†ÿÿH@*4xÀ�"ŠCover Upan expense sheetet͸³! pÿgºv@è Chunking: Destinationsˆ ëDestination Operator:„ Description:«into•replaces destination£before“+inserts before the start of the destinationŒafter”(inserts after the end of the destinationá peaches, a‚plesŠ‚Ä Sample: Field1ñ Example:«Result:–put "he‚lo" into field 1;š he‚lo“ Ôput "he‚lo" before word 2 of field 1;� peaches, he‚loa‚plesØput "he‚lo" before field 1;™he‚l opeaches, a‚plesØput "he‚lo" after word 1 of field 1‘ peaches,he‚lo a‚plesØput "he‚l)o" into char 3 to 4 of word 2 of field 1;‚ peaches, aphe‚loesÚput "he‚lo" into word 1 of field 1;‘he‚lo a‚plesÿÿèŸ0êÎ0ÿÿÆ™‡ƒÿ‚Î0¶™‡ÿˆ™‡ÿˆ™‡ÿˆ™‡ÿˆ™‡ÿˆ™‡ÿóvŠ,аˆ$ó Ordinals õOrdinal:Œ Description:°first� element 1³secondŽ element 2³third� element 3³fourthŽ element4³fifth� element5³sixth� element6³seventh� element7³eighthŽ element8³ninth� element9³tenth� element10²last�#the last element in the entire list™any‘any element in the entire listžmi‚dleŽthe mi‚dle element in the entire listÿÿÿÿÿšóŠ0ôÎ0ÿÿÿÿÿÿÿÿÿÿÿÿÿžI�ÿÿH@4ž�Cover Upan expense sheetet͸³! pÿgÌTtô Colors ¾ÄÂĵColor Constant:‚ Value:‚!³Specifying Colors Combinations:–blackŒ0‚„Û ³red ‹†Ûƒ 4œblue�1‚„Û³white“15›gr‚enŒ2‚„Û³red on white ‚Test„(white * 16) + red ‰cyan�3‚„Û³™ (15 * 16) + 4�redŽ4‚„Û³™2‚4šmagentaŠ5‚„Û,³Specify High-Intensity Colors (blinking):ŒbrownŒ6‚„Û³redŒ†Ûƒ4œgrey�7‚„Û³white“15› dark greyˆ8‚„Û³blinking redƒ†Ûƒ128 + 4– light blue‡9‚„Û³™132šlight gr‚en†10„Û³blinking red on whiteƒ(white * 16) + red + 128… light cyan‡‚1„Û³‘Test„(15 * 16) + 4 + 128Š light redˆ12„Û³™ 240 + 132” light magenta„13„Û³™247šye‚low‹14„Û ³Examples:¬whiteŒ15„Û³set the color of bu‚t on 1 to red;­+³set the color of field 1 to red on white;¥/³set the color of me to blinking red on white; ÄÁÿÕôˆ0õš0³0—„’†´„’†p´„’†t´„̄̄‚³0—„’†Ê†p´„’† ´„ Ì„ Ì„ ’†|´„ Ì„ Ì„‚³0—„ÿÿÿÉb��H@&žG“Cover Upan expense sheetet͸³! pÿg'ý&ò Constants õMisce‚laneous Constants:¸empty‰. Empty string ‚"³false‰.B‚olean value false¯trueŠ.B‚olean value true°piŒ.3.14159»upŒ.+Returned from ctrlKey(),altkey(),shiftKey()—downŠ.+Returned from ctrlKey(),altkey(),shiftKey()—Character Constants:¼formf‚ed†.ASC‚I 12ºlinef‚ed†.ASC‚I 10ºquote‰.ASC‚I 34 (")¶returnˆ.ASC‚I 13ºspace‰.ASC‚I 32 (" ")´tab‹.ASC‚I 9»Numeric Constants:¾zeroˆfour…eight¶one‰five…nine·two‰six†ten¸thr‚e‡sevenÿÿ¯ò‹0ôÎ0ÿÿÿåÎ0ÿÿÿåÎ0ÿÿÿÿµ›“Q“H@*4žÛ•Cover Upan expense sheetet͸³! pÿg&ú(ò Constants õProperty Constants:»æÄ夀 ´³Constant:… Used with Property:„ ³Constant:…Used with Property:…³Ã¦ÄÅ§Ä ´³centered†align’³o‚f‹cursor,printer,mouse‡checkBox†style’³opaqueˆstyle–evenŠparity‘ ³position†ta‚bing”fat‹cursor‘³right‰align–layer‰ta‚bing�³scro‚ling…style–leftŠnamePosition,align…³thinŠcursor•listBox‡style’³top‹ namePosition�noneŠparity‘ ³transparentƒstyle”³o‚d‹parity‘³§³Ã¦ÄÁ§Ä´³ÿÿÿÿÿ„ò‹0ôÎ0Ò¦0§0ÿÿÿÿÿÿÿÿÿÿÿü/–å•L41A9handler select; begin go to page id 31; end; Ò�A731*H17œÀ�n˜handleron1ÿL41A9handler select; begin go to page id 63; end; Ò�A763*H18ŒÀ�™functionn1ÿL41A9handler select; begin go to page id 14; end; Ò�A714*H&,À�ž™messagen1pÿL41A9handler select; begin go to page id 34; end; Ò�A734*H À�6šobjectn1pÿH@&ÔÀ�ΚCover Upan expense sheetet͸³! pÿg£žï Script Structure ñEvery object in HyperPAD (bu‚t ons, fields,� Script of bu‚ton܇*pages, background, and pads) have scripts.ƒƒ ‡’߂܄A script is a co‚lection of handlers that‚Úhandler select;ŽÛ„%define what actions to take when a me‚sage³‚begin˜Û„is sent to a particular object.Œ³„Û¯³‚end;™Û„As an example, su‚p ose you pre‚s ENTER on‚³ŸÛ„the bu‚ton with the focus:‘³‚handler mouseUp;�Û¯‚begin˜ÛŒ 1.You Pre‚s ENTER.�³…:™Û•³™³‚end;™ÛŒ2.The key event“³ŸÛ� is translated to�³‚function calcResult(i,j);„Û� a select me‚sage.�³‚begin˜Û•³™³„:šÛŒ3.The select me‚sageŽ‚end;™Û�is sent to the…�ÄÙŸÛ�bu‚tonƒ.·Û²žßÿóï’0ÿ¨’0´žp±žp±žp±žp±žp±žp±žp±žpŽ”p�žp±žpŽ”p�žpŽ”p�žpŽƒp†t‹p�žp±žpŽ…p†t‰p�žpŽ”p�žpŽ”p�žp±Ÿÿó%"›¼˜T™ì™„šØš¢H À�Ž��You can define handlers within the script of any object. Handlers are callable from within the same script or scripts lower in the hierarchy.Pa@N!p¬À�ÿÿpÿ‚2Ló Handlers ÿÿçA sample handler:ÕÚ‚Ä Me‚sage nameÀ³ƒ …Ú‚ÄPa‚s ed parameters²ˆ¹ handler switchPage(pageNumber);… « beginŸ Ä¿©ƒ visual e‚fect p‚el u‚per left;„ ÃÄ Statements�ƒ go to page pageNumber;�³© end;  ÄÙðTo ca‚l the handler:ÿ–:Ì switchPage 1;Æ:ÿÿÿ‡óŠ0ÿÿÿ΃͈ƒÄˆ¹¥p«¥p‚©¥p‚¨¥p©¥pÿÿÿÿÿÿÄäŸîž’ŸìH„À�Ø×�You can define function anywhere in the object hierarchy. Functions are available from the same script or from scripts of objects lower in the hierarchy. Each function must return a value using the return statement.PaN!p€À�ÿÿpÿÆoSò Functions ÿÿÿ¸A sample function:‰ÚÄ Name of function me‚sageµ³‡Ú‚Ä Pa‚s ed parameters³‡� ªfunction calcResult(a,b);·beginŸÄ¿¬get page field 1;’ ÃÄ Statements return it * 0.07 + 1‚0 * a + b;„³ªend;žÄÙ¯ÀƒÄreturns a value to the ca‚lerëTo ca‚l this function:ÿ”:Í(put calcResult(10,12) into page field 1;ª:ÿÿ¶ò‹0ÿÿÿӂ·ƒÅ‡¹¥p«¥p‚©¥p‚¨¥p©†p~žp‚¯„ÿÿÿÿÿÿ�⃡q¢H@*4À�¦¤Cover Upan expense sheetet͸³! pÿgÕ*ï Scripting Notes ò PADtalk is case insensitive.ÿƒA You can break lines anywhere in your PADtalk statements (except‘within quoted strings).ÿˆ  HyperPAD su‚ports two types of co‚ments:ø1. Co‚m(ents that extend to the end of the line:ñ„ go to page 10;‚ ‚- this is a co‚ment÷2. Multi-line co‚ments:¾{Ñgo to the next page;º}ÿžNote: Multi-line co‚ments can be nested.ÿÿÿ´ï‘0òÿ ÿðÿÿÿÿÿÿÿÿÿÿ×ú¤°¤H@4èÀ�Ö¦Cover Upan expense sheetet͸³! pÿgoG$ò Containers ôKA container is a HyperPAD device into which you can store information. The …fo‚l#owing table shows how to use the di‚ferent containers:æ Container:�Example:±fields‘age | background] field 1�‚- by numberœ[page | background] field id 4Š‚- by IDŸ& [page | background] field "Last Name"ƒ‚- by name‡local variablesˆput 10 into myTotal;‚‚- just use it•global variables‡global myTotal;‡‚-declare it global¦put 10 into myTotal;‚‚-ƒ ƒ. then use it Žparameter variables„handler calcResult(i,j);¸begin�½ put i * j;ˆÀ‚Äparameter variables¥end;“ ¡the me‚sage boxˆput 10 ‚& field "He‚lo" into the me‚sage box;£a‚d 1 to the me‚sage box;  selectedText‹$put the selectedText into savedText;¬set the selectedText to empty;²$set the selectedText to "Watch Out";ÿÿ…òŒ0ÿÿåÎ0ÿÿÿÿÿÿÿÿÿÿÿ¬*§à¦L41A9handler select; begin go to page id 65; end; Ò�A765*H<BÈÀ�²ªordinaln1pÿH@&ðÀ�J«Cover Upan expense sheetet͸³! pÿgÿ×$ó Objects öObject:ŠExample:—Co‚ments:—bu‚tonsŠbu‚ton 1;– first page bu‚ton  background bu‚ton 1;‹first background bu‚tonšbu‚t on id 45;’by ID¬bu‚t on "Home"’by nameªbu‚ton 1 of ƒwith a page reference‹fieldŒfield 1;—first background field› page field 1;’first page field¡background field id 3;‰by ID¬field "Last Name�by nameªfield 1 of „with a page reference‹pagesŒpage 1™ by number¨ page id 56•by ID¬page "Preferences"�by nameª next page–using an ordinal¡page 1 of background 4‰first page using bkgnd 4™page 1 of next background†first page on next bkgnd™next page of this backgroundƒnext page of same bkgndÿÿÉó‰0õÎ0ÿÿÿÿÿÿÿÿÿÿÿÿÿžž««T«H@*4øÀ�º®Cover Upan expense sheetet͸³! pÿg˜p$ó Objects öObject:ŠExample:—Co‚ments:— backgrounds† background 1“first background created™background id 4�by ID¬background "Template"Šby name™padŽpad "C:\HPAD\PADS\PHONE.PAD"ƒby nameªthis pad—cu‚rent pad•cu‚r entObject„set the color of the curObj‚.‚the object with the focus‡me�set the color of me toƒ.†the object that owns the¸cu‚rently ru‚n ing scriptˆtarget‹set the color of the target‚.‚the object that origina‚ly†… «received the me‚sageŒthis� this page–the cu‚rent page¡this background�the cu‚rent background›this pad—the cu‚rent padÿÿÿÿÿ”ó‰0õÎ0ÿÿÿÿÿÿÿÿÿÿÿÿÿž¯Ä®þH€žêé ALT+F8 28416 ALT+F5 27648 ALT+F6 27904 SHIFT+F3 22016 SHIFT+F3 22016 SHIFT+F4 22272 SHIFT+F5 22528 SHIFT+F5 22528 SHIFT+F4 22272P‡@#Keysng±‡±‡±‡±‡±‡±‡±‡ÄÄÄÄÄÄ!p4žÿÿpÿ�‡[kchandler select; begin global trap; show page button id 3; put true into trap; end; Òžk7X3N  *R P��trapXXX*H‡$tž³Testutton‡±‡±‡±‡±‡±‡ÄÄÄÄÄÄ100pÿN^Vhandler select; begin global trap; put false into trap; hide me; end; Òž^7��trapXXXf~g *S P*H‡Tží³Press ESC when done...ÄÄÄÄÄ1ààpÿH@4œÀ�¸´Cover Upan expense sheetet͸³! pÿgL41A9handler select; begin go to page id 14; end; Ò�A714*H- 4 ÔÀ� µkeyPressn1pÿL41A9handler select; begin go to page id 23; end; Ò�A723*HDHÄÀ�¤µkey()ssn1pÿL41A9handler select; begin go to page id 27; end; Ò�A727*HDI¼À�<¶recordsn1pÿ‡ðøhandler openPage; begin global trap; put false into trap; end; handler keypress(k); begin global trap; if not trap then pass; if k is 283 then begin put false into trap; hide page button id 3; end; get key(k); get it & repeatChar(20 - length(it),space) & k; put it after the last line of page field "keys"; put the number of lines of page field "keys"; if (the number of lines of page field "keys") >= 10 then delete line 1 of page field "keys"; end;éžæ7��trapXXX*87trapy/283X+ ��trapXXXX3N  *S PX   W:� XXXX    :20 �   Z: ,,� XXX �Xkeys%Xl——A  Xkeys%##A)X X10Xkeys%##A4�Xkeys%X1 W*ß¡:õ Keys Ìħ³Ú Ä¿„ (³ HyperPAD uses key names/numbers to: ³‚ ³Key Name:‹ Key Value:³„³©àÄ´„!³Specify keys using the record‰³ ³„³ƒco‚mand:œ³³ ³„³©³ ³„³…record "{enter}he‚l o{alt+r}"; †³ ³„³©³ ³„³Pa‚s a pre‚s ed key to the�³ ³„³ƒkeyPre‚s handler:•³ ³„³–ÚƒÄ Key Number„³ ³„³…handler keypre‚s(k);�³ ³„³…beginŸÀ ÄÙ„³‡:ÃÄ¿³…end;ij³ªTo determine the names andˆ# ³³Return values from the key()‹ values of keys, select the TestƒÄÙ³ƒ function:� bu‚ton and type the key. Pre‚s‡³ªESC when done.(S‚e A‚pendix 2)† ³… key(7181)‚Ä  "ENTER"³ÄÁÄÿÇõ†0ÿÉ 0×ÿÿÿ’ÿÿÿ܃ÏσȄÿÿÿ¼1Զݹ¿±¿²£³n´Â´ZµòµŠ¶