Home » Archimedes archive » Acorn User » AU 1998-12.adf » Regulars » StarInfo/Granger/Docs/PROCs_FNs
StarInfo/Granger/Docs/PROCs_FNs
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Archimedes archive » Acorn User » AU 1998-12.adf » Regulars |
Filename: | StarInfo/Granger/Docs/PROCs_FNs |
Read OK: | ✔ |
File size: | 1020 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
54 Procedures 17 Functions ### ChemUtils ### PROCbreakdown(reactant(0)/product(1),string$) Breaks down formulae into forms$(s,n) PROCdecode - Calls the nessesary procedures to breakdown and analysis a formula PROCanalysis(see procbalance) - Breaks down formula into element and bracket data PROCstopdotmult - Continuation of PROCdotmult PROCdotmult - finds out multipier after dot PROCpercentcomp - Calculates percentage comp PROCerrorcheck - Checks err for error then display error message in user message window PROCusermessage(text1$ .... text5$) - displays a usermessage PROCcompoundicons - sets up working out icons for molar mass PROCshowcalc(s,n) - Calculates molar mass of s,n PROCbalance(normal(0) / percent comp (1)) - counts numbers of elements PROCbalance_checkelements - checks same elements are on each side PROCshowcomponents(see procbalance) - shows numbers of elements in icons PROCworkoutformula - works out formula of named ionic compound PROCdrawbalancewindow - draws icons in the balance window PROCdisplaybalancetuff(value) - updates text in balance window PROCupdatebalance - updates balance window PROCclearvars - clears formula dimensions ****** FNremovenumber(text$) - removes prefix number of string text$ FNwhatcharge_file(text$,0=Anion / 1 =Cation) - Returns the charge text$ as an ion FNwhatcharge_periodic(text$) - identifies charges using periodic table FNfindelement(text$) - locates elements and reurns it's id code else reurns -1 FNroman(text$) - returns cardinal value of roman text$ (1-8 only) FNupcase(text$, 1=uppercase, 2=proper) - returns text$ with case altered as specified FNcompound_type(text$) - counts the no. of elements in text$ returns 1=1, 2 = >1 FNtype - returns the values -1=not identified, 0=no caps, 1=caps, 2=number, 3="(", 4=")", 5="." uses W$ at pos 'c' FNsym_to_id(text$) - returns -1=not an element, else returns the number of the element (position in file) FNround(number, decimal places) - Used by percentagecomp to round numbers ### !Runimage ### PROCreceive(n) - Receives user message n PROCinitialise - Guess PROCsetup - loads element data + draws periodic table PROCdisplay(b) - updates element data window for element n PROCdisplayoptions - updates options window PROCsaveoptons - guess PROCloadoptions - guess PROCpoll - does Wimp_Poll stuff PROCmouse(button%,icon%,win%) - controlls all responses to mouse actions PROCiconcalculate - calculates what type of icon in the balance window you have clicked on PROCkeypress - responds to pressing return + finds out where return came from PROCprocess - co-ordinates the analysing of formulae PROCmenuselect - controlls response to menu selections ### Database ### PROCindexload - guess PROCgroup_load(n) - loads group n PROCmenusetupdims - sets up memory blocks for menus FNreadfile - number of bytes in file n + returns number of lines as lines PROCcompoundmenus(what) - sets up menus PROCshowdatabase - updates database window PROCfile_error - error for writing to a protected file PROCsave - saves current group% PROCdelete - deletes compound n (com%) from group% PROCsortAZ - sorts group% A-Z order PROCcreategroup - sets up new group PROCdeletegroup - guess PROCindexsave - saves index PROCadd(text$) - adds compound text$ to group% ### HelpPROCs ### FNhelpmessage(window%,icon%) = message for icon% in window% ### IconPROCs ### FNreadicon(win,icon%) - returns the text form the icon icon% in window win% PROCicontext(win,icon,text$) - updates said icon with text$ FNcreate_icon(---------------) - creates icon with assigned properites FNicon_flags - returns value for an icon with assigned properties ### MenuPROCs ### FNdecode(b%) = returns the item selected as text PROCmenuheader(menu%,title$) - sets up menu header at memory location menu% with title$ PROCmenuitem(menu%,mflags%,subptr%,item$) - adds what ever item to menu menu% PROCsetupmenu - setts up menus defined in datalines at the end of RunImage FNmenuflags - returns the falg value from assigned properties PROCshowmenu(menu%,x,y) - displays menu at (x,y) position PROCarrows(menu%,on/off) - turns arrows on/off for main database menu
00000000 35 34 20 50 72 6f 63 65 64 75 72 65 73 0a 31 37 |54 Procedures.17| 00000010 20 46 75 6e 63 74 69 6f 6e 73 0a 0a 23 23 23 20 | Functions..### | 00000020 43 68 65 6d 55 74 69 6c 73 20 23 23 23 0a 50 52 |ChemUtils ###.PR| 00000030 4f 43 62 72 65 61 6b 64 6f 77 6e 28 72 65 61 63 |OCbreakdown(reac| 00000040 74 61 6e 74 28 30 29 2f 70 72 6f 64 75 63 74 28 |tant(0)/product(| 00000050 31 29 2c 73 74 72 69 6e 67 24 29 20 42 72 65 61 |1),string$) Brea| 00000060 6b 73 20 64 6f 77 6e 20 66 6f 72 6d 75 6c 61 65 |ks down formulae| 00000070 20 69 6e 74 6f 20 66 6f 72 6d 73 24 28 73 2c 6e | into forms$(s,n| 00000080 29 0a 50 52 4f 43 64 65 63 6f 64 65 20 2d 20 43 |).PROCdecode - C| 00000090 61 6c 6c 73 20 74 68 65 20 6e 65 73 73 65 73 61 |alls the nessesa| 000000a0 72 79 20 70 72 6f 63 65 64 75 72 65 73 20 74 6f |ry procedures to| 000000b0 20 62 72 65 61 6b 64 6f 77 6e 20 61 6e 64 20 61 | breakdown and a| 000000c0 6e 61 6c 79 73 69 73 20 61 20 66 6f 72 6d 75 6c |nalysis a formul| 000000d0 61 0a 50 52 4f 43 61 6e 61 6c 79 73 69 73 28 73 |a.PROCanalysis(s| 000000e0 65 65 20 70 72 6f 63 62 61 6c 61 6e 63 65 29 20 |ee procbalance) | 000000f0 2d 20 42 72 65 61 6b 73 20 64 6f 77 6e 20 66 6f |- Breaks down fo| 00000100 72 6d 75 6c 61 20 69 6e 74 6f 20 65 6c 65 6d 65 |rmula into eleme| 00000110 6e 74 20 61 6e 64 20 62 72 61 63 6b 65 74 20 64 |nt and bracket d| 00000120 61 74 61 0a 50 52 4f 43 73 74 6f 70 64 6f 74 6d |ata.PROCstopdotm| 00000130 75 6c 74 20 2d 20 43 6f 6e 74 69 6e 75 61 74 69 |ult - Continuati| 00000140 6f 6e 20 6f 66 20 50 52 4f 43 64 6f 74 6d 75 6c |on of PROCdotmul| 00000150 74 0a 50 52 4f 43 64 6f 74 6d 75 6c 74 20 2d 20 |t.PROCdotmult - | 00000160 66 69 6e 64 73 20 6f 75 74 20 6d 75 6c 74 69 70 |finds out multip| 00000170 69 65 72 20 61 66 74 65 72 20 64 6f 74 0a 50 52 |ier after dot.PR| 00000180 4f 43 70 65 72 63 65 6e 74 63 6f 6d 70 20 2d 20 |OCpercentcomp - | 00000190 43 61 6c 63 75 6c 61 74 65 73 20 70 65 72 63 65 |Calculates perce| 000001a0 6e 74 61 67 65 20 63 6f 6d 70 0a 50 52 4f 43 65 |ntage comp.PROCe| 000001b0 72 72 6f 72 63 68 65 63 6b 20 2d 20 43 68 65 63 |rrorcheck - Chec| 000001c0 6b 73 20 65 72 72 20 66 6f 72 20 65 72 72 6f 72 |ks err for error| 000001d0 20 74 68 65 6e 20 64 69 73 70 6c 61 79 20 65 72 | then display er| 000001e0 72 6f 72 20 6d 65 73 73 61 67 65 20 69 6e 20 75 |ror message in u| 000001f0 73 65 72 20 6d 65 73 73 61 67 65 20 77 69 6e 64 |ser message wind| 00000200 6f 77 0a 50 52 4f 43 75 73 65 72 6d 65 73 73 61 |ow.PROCusermessa| 00000210 67 65 28 74 65 78 74 31 24 20 2e 2e 2e 2e 20 74 |ge(text1$ .... t| 00000220 65 78 74 35 24 29 20 2d 20 64 69 73 70 6c 61 79 |ext5$) - display| 00000230 73 20 61 20 75 73 65 72 6d 65 73 73 61 67 65 0a |s a usermessage.| 00000240 50 52 4f 43 63 6f 6d 70 6f 75 6e 64 69 63 6f 6e |PROCcompoundicon| 00000250 73 20 2d 20 73 65 74 73 20 75 70 20 77 6f 72 6b |s - sets up work| 00000260 69 6e 67 20 6f 75 74 20 69 63 6f 6e 73 20 66 6f |ing out icons fo| 00000270 72 20 6d 6f 6c 61 72 20 6d 61 73 73 0a 50 52 4f |r molar mass.PRO| 00000280 43 73 68 6f 77 63 61 6c 63 28 73 2c 6e 29 20 2d |Cshowcalc(s,n) -| 00000290 20 43 61 6c 63 75 6c 61 74 65 73 20 6d 6f 6c 61 | Calculates mola| 000002a0 72 20 6d 61 73 73 20 6f 66 20 73 2c 6e 0a 50 52 |r mass of s,n.PR| 000002b0 4f 43 62 61 6c 61 6e 63 65 28 6e 6f 72 6d 61 6c |OCbalance(normal| 000002c0 28 30 29 20 2f 20 70 65 72 63 65 6e 74 20 63 6f |(0) / percent co| 000002d0 6d 70 20 28 31 29 29 20 2d 20 63 6f 75 6e 74 73 |mp (1)) - counts| 000002e0 20 6e 75 6d 62 65 72 73 20 6f 66 20 65 6c 65 6d | numbers of elem| 000002f0 65 6e 74 73 20 0a 50 52 4f 43 62 61 6c 61 6e 63 |ents .PROCbalanc| 00000300 65 5f 63 68 65 63 6b 65 6c 65 6d 65 6e 74 73 20 |e_checkelements | 00000310 2d 20 63 68 65 63 6b 73 20 73 61 6d 65 20 65 6c |- checks same el| 00000320 65 6d 65 6e 74 73 20 61 72 65 20 6f 6e 20 65 61 |ements are on ea| 00000330 63 68 20 73 69 64 65 0a 50 52 4f 43 73 68 6f 77 |ch side.PROCshow| 00000340 63 6f 6d 70 6f 6e 65 6e 74 73 28 73 65 65 20 70 |components(see p| 00000350 72 6f 63 62 61 6c 61 6e 63 65 29 20 2d 20 73 68 |rocbalance) - sh| 00000360 6f 77 73 20 6e 75 6d 62 65 72 73 20 6f 66 20 65 |ows numbers of e| 00000370 6c 65 6d 65 6e 74 73 20 69 6e 20 69 63 6f 6e 73 |lements in icons| 00000380 0a 50 52 4f 43 77 6f 72 6b 6f 75 74 66 6f 72 6d |.PROCworkoutform| 00000390 75 6c 61 20 2d 20 77 6f 72 6b 73 20 6f 75 74 20 |ula - works out | 000003a0 66 6f 72 6d 75 6c 61 20 6f 66 20 6e 61 6d 65 64 |formula of named| 000003b0 20 69 6f 6e 69 63 20 63 6f 6d 70 6f 75 6e 64 0a | ionic compound.| 000003c0 50 52 4f 43 64 72 61 77 62 61 6c 61 6e 63 65 77 |PROCdrawbalancew| 000003d0 69 6e 64 6f 77 20 2d 20 64 72 61 77 73 20 69 63 |indow - draws ic| 000003e0 6f 6e 73 20 69 6e 20 74 68 65 20 62 61 6c 61 6e |ons in the balan| 000003f0 63 65 20 77 69 6e 64 6f 77 0a 50 52 4f 43 64 69 |ce window.PROCdi| 00000400 73 70 6c 61 79 62 61 6c 61 6e 63 65 74 75 66 66 |splaybalancetuff| 00000410 28 76 61 6c 75 65 29 20 2d 20 75 70 64 61 74 65 |(value) - update| 00000420 73 20 74 65 78 74 20 69 6e 20 62 61 6c 61 6e 63 |s text in balanc| 00000430 65 20 77 69 6e 64 6f 77 0a 50 52 4f 43 75 70 64 |e window.PROCupd| 00000440 61 74 65 62 61 6c 61 6e 63 65 20 2d 20 75 70 64 |atebalance - upd| 00000450 61 74 65 73 20 62 61 6c 61 6e 63 65 20 77 69 6e |ates balance win| 00000460 64 6f 77 0a 50 52 4f 43 63 6c 65 61 72 76 61 72 |dow.PROCclearvar| 00000470 73 20 2d 20 63 6c 65 61 72 73 20 66 6f 72 6d 75 |s - clears formu| 00000480 6c 61 20 64 69 6d 65 6e 73 69 6f 6e 73 0a 2a 2a |la dimensions.**| 00000490 2a 2a 2a 2a 0a 46 4e 72 65 6d 6f 76 65 6e 75 6d |****.FNremovenum| 000004a0 62 65 72 28 74 65 78 74 24 29 20 2d 20 72 65 6d |ber(text$) - rem| 000004b0 6f 76 65 73 20 70 72 65 66 69 78 20 6e 75 6d 62 |oves prefix numb| 000004c0 65 72 20 6f 66 20 73 74 72 69 6e 67 20 74 65 78 |er of string tex| 000004d0 74 24 0a 46 4e 77 68 61 74 63 68 61 72 67 65 5f |t$.FNwhatcharge_| 000004e0 66 69 6c 65 28 74 65 78 74 24 2c 30 3d 41 6e 69 |file(text$,0=Ani| 000004f0 6f 6e 20 2f 20 31 20 3d 43 61 74 69 6f 6e 29 20 |on / 1 =Cation) | 00000500 2d 20 52 65 74 75 72 6e 73 20 74 68 65 20 63 68 |- Returns the ch| 00000510 61 72 67 65 20 74 65 78 74 24 20 61 73 20 61 6e |arge text$ as an| 00000520 20 69 6f 6e 0a 46 4e 77 68 61 74 63 68 61 72 67 | ion.FNwhatcharg| 00000530 65 5f 70 65 72 69 6f 64 69 63 28 74 65 78 74 24 |e_periodic(text$| 00000540 29 20 2d 20 69 64 65 6e 74 69 66 69 65 73 20 63 |) - identifies c| 00000550 68 61 72 67 65 73 20 75 73 69 6e 67 20 70 65 72 |harges using per| 00000560 69 6f 64 69 63 20 74 61 62 6c 65 0a 46 4e 66 69 |iodic table.FNfi| 00000570 6e 64 65 6c 65 6d 65 6e 74 28 74 65 78 74 24 29 |ndelement(text$)| 00000580 20 2d 20 6c 6f 63 61 74 65 73 20 65 6c 65 6d 65 | - locates eleme| 00000590 6e 74 73 20 61 6e 64 20 72 65 75 72 6e 73 20 69 |nts and reurns i| 000005a0 74 27 73 20 69 64 20 63 6f 64 65 20 65 6c 73 65 |t's id code else| 000005b0 20 72 65 75 72 6e 73 20 2d 31 0a 46 4e 72 6f 6d | reurns -1.FNrom| 000005c0 61 6e 28 74 65 78 74 24 29 20 2d 20 72 65 74 75 |an(text$) - retu| 000005d0 72 6e 73 20 63 61 72 64 69 6e 61 6c 20 76 61 6c |rns cardinal val| 000005e0 75 65 20 6f 66 20 72 6f 6d 61 6e 20 74 65 78 74 |ue of roman text| 000005f0 24 20 28 31 2d 38 20 6f 6e 6c 79 29 0a 46 4e 75 |$ (1-8 only).FNu| 00000600 70 63 61 73 65 28 74 65 78 74 24 2c 20 31 3d 75 |pcase(text$, 1=u| 00000610 70 70 65 72 63 61 73 65 2c 20 32 3d 70 72 6f 70 |ppercase, 2=prop| 00000620 65 72 29 20 2d 20 72 65 74 75 72 6e 73 20 74 65 |er) - returns te| 00000630 78 74 24 20 77 69 74 68 20 63 61 73 65 20 61 6c |xt$ with case al| 00000640 74 65 72 65 64 20 61 73 20 73 70 65 63 69 66 69 |tered as specifi| 00000650 65 64 0a 46 4e 63 6f 6d 70 6f 75 6e 64 5f 74 79 |ed.FNcompound_ty| 00000660 70 65 28 74 65 78 74 24 29 20 2d 20 63 6f 75 6e |pe(text$) - coun| 00000670 74 73 20 74 68 65 20 6e 6f 2e 20 6f 66 20 65 6c |ts the no. of el| 00000680 65 6d 65 6e 74 73 20 69 6e 20 74 65 78 74 24 20 |ements in text$ | 00000690 72 65 74 75 72 6e 73 20 31 3d 31 2c 20 32 20 3d |returns 1=1, 2 =| 000006a0 20 3e 31 0a 46 4e 74 79 70 65 20 2d 20 72 65 74 | >1.FNtype - ret| 000006b0 75 72 6e 73 20 74 68 65 20 76 61 6c 75 65 73 20 |urns the values | 000006c0 2d 31 3d 6e 6f 74 20 69 64 65 6e 74 69 66 69 65 |-1=not identifie| 000006d0 64 2c 20 30 3d 6e 6f 20 63 61 70 73 2c 20 31 3d |d, 0=no caps, 1=| 000006e0 63 61 70 73 2c 20 32 3d 6e 75 6d 62 65 72 2c 20 |caps, 2=number, | 000006f0 33 3d 22 28 22 2c 20 34 3d 22 29 22 2c 20 35 3d |3="(", 4=")", 5=| 00000700 22 2e 22 20 75 73 65 73 20 57 24 20 61 74 20 70 |"." uses W$ at p| 00000710 6f 73 20 27 63 27 0a 46 4e 73 79 6d 5f 74 6f 5f |os 'c'.FNsym_to_| 00000720 69 64 28 74 65 78 74 24 29 20 2d 20 72 65 74 75 |id(text$) - retu| 00000730 72 6e 73 20 2d 31 3d 6e 6f 74 20 61 6e 20 65 6c |rns -1=not an el| 00000740 65 6d 65 6e 74 2c 20 65 6c 73 65 20 72 65 74 75 |ement, else retu| 00000750 72 6e 73 20 74 68 65 20 6e 75 6d 62 65 72 20 6f |rns the number o| 00000760 66 20 74 68 65 20 65 6c 65 6d 65 6e 74 20 28 70 |f the element (p| 00000770 6f 73 69 74 69 6f 6e 20 69 6e 20 66 69 6c 65 29 |osition in file)| 00000780 0a 46 4e 72 6f 75 6e 64 28 6e 75 6d 62 65 72 2c |.FNround(number,| 00000790 20 64 65 63 69 6d 61 6c 20 70 6c 61 63 65 73 29 | decimal places)| 000007a0 20 2d 20 55 73 65 64 20 62 79 20 70 65 72 63 65 | - Used by perce| 000007b0 6e 74 61 67 65 63 6f 6d 70 20 74 6f 20 72 6f 75 |ntagecomp to rou| 000007c0 6e 64 20 6e 75 6d 62 65 72 73 0a 0a 23 23 23 20 |nd numbers..### | 000007d0 21 52 75 6e 69 6d 61 67 65 20 23 23 23 0a 50 52 |!Runimage ###.PR| 000007e0 4f 43 72 65 63 65 69 76 65 28 6e 29 20 2d 20 52 |OCreceive(n) - R| 000007f0 65 63 65 69 76 65 73 20 75 73 65 72 20 6d 65 73 |eceives user mes| 00000800 73 61 67 65 20 6e 0a 50 52 4f 43 69 6e 69 74 69 |sage n.PROCiniti| 00000810 61 6c 69 73 65 20 2d 20 47 75 65 73 73 0a 50 52 |alise - Guess.PR| 00000820 4f 43 73 65 74 75 70 20 2d 20 6c 6f 61 64 73 20 |OCsetup - loads | 00000830 65 6c 65 6d 65 6e 74 20 64 61 74 61 20 2b 20 64 |element data + d| 00000840 72 61 77 73 20 70 65 72 69 6f 64 69 63 20 74 61 |raws periodic ta| 00000850 62 6c 65 0a 50 52 4f 43 64 69 73 70 6c 61 79 28 |ble.PROCdisplay(| 00000860 62 29 20 2d 20 75 70 64 61 74 65 73 20 65 6c 65 |b) - updates ele| 00000870 6d 65 6e 74 20 64 61 74 61 20 77 69 6e 64 6f 77 |ment data window| 00000880 20 66 6f 72 20 65 6c 65 6d 65 6e 74 20 6e 0a 50 | for element n.P| 00000890 52 4f 43 64 69 73 70 6c 61 79 6f 70 74 69 6f 6e |ROCdisplayoption| 000008a0 73 20 2d 20 75 70 64 61 74 65 73 20 6f 70 74 69 |s - updates opti| 000008b0 6f 6e 73 20 77 69 6e 64 6f 77 0a 50 52 4f 43 73 |ons window.PROCs| 000008c0 61 76 65 6f 70 74 6f 6e 73 20 2d 20 67 75 65 73 |aveoptons - gues| 000008d0 73 0a 50 52 4f 43 6c 6f 61 64 6f 70 74 69 6f 6e |s.PROCloadoption| 000008e0 73 20 2d 20 67 75 65 73 73 0a 50 52 4f 43 70 6f |s - guess.PROCpo| 000008f0 6c 6c 20 2d 20 64 6f 65 73 20 57 69 6d 70 5f 50 |ll - does Wimp_P| 00000900 6f 6c 6c 20 73 74 75 66 66 0a 50 52 4f 43 6d 6f |oll stuff.PROCmo| 00000910 75 73 65 28 62 75 74 74 6f 6e 25 2c 69 63 6f 6e |use(button%,icon| 00000920 25 2c 77 69 6e 25 29 20 2d 20 63 6f 6e 74 72 6f |%,win%) - contro| 00000930 6c 6c 73 20 61 6c 6c 20 72 65 73 70 6f 6e 73 65 |lls all response| 00000940 73 20 74 6f 20 6d 6f 75 73 65 20 61 63 74 69 6f |s to mouse actio| 00000950 6e 73 0a 50 52 4f 43 69 63 6f 6e 63 61 6c 63 75 |ns.PROCiconcalcu| 00000960 6c 61 74 65 20 2d 20 63 61 6c 63 75 6c 61 74 65 |late - calculate| 00000970 73 20 77 68 61 74 20 74 79 70 65 20 6f 66 20 69 |s what type of i| 00000980 63 6f 6e 20 69 6e 20 74 68 65 20 62 61 6c 61 6e |con in the balan| 00000990 63 65 20 77 69 6e 64 6f 77 20 79 6f 75 20 68 61 |ce window you ha| 000009a0 76 65 20 63 6c 69 63 6b 65 64 20 6f 6e 0a 50 52 |ve clicked on.PR| 000009b0 4f 43 6b 65 79 70 72 65 73 73 20 2d 20 72 65 73 |OCkeypress - res| 000009c0 70 6f 6e 64 73 20 74 6f 20 70 72 65 73 73 69 6e |ponds to pressin| 000009d0 67 20 72 65 74 75 72 6e 20 2b 20 66 69 6e 64 73 |g return + finds| 000009e0 20 6f 75 74 20 77 68 65 72 65 20 72 65 74 75 72 | out where retur| 000009f0 6e 20 63 61 6d 65 20 66 72 6f 6d 0a 50 52 4f 43 |n came from.PROC| 00000a00 70 72 6f 63 65 73 73 20 2d 20 63 6f 2d 6f 72 64 |process - co-ord| 00000a10 69 6e 61 74 65 73 20 74 68 65 20 61 6e 61 6c 79 |inates the analy| 00000a20 73 69 6e 67 20 6f 66 20 66 6f 72 6d 75 6c 61 65 |sing of formulae| 00000a30 0a 50 52 4f 43 6d 65 6e 75 73 65 6c 65 63 74 20 |.PROCmenuselect | 00000a40 2d 20 63 6f 6e 74 72 6f 6c 6c 73 20 72 65 73 70 |- controlls resp| 00000a50 6f 6e 73 65 20 74 6f 20 6d 65 6e 75 20 73 65 6c |onse to menu sel| 00000a60 65 63 74 69 6f 6e 73 0a 0a 23 23 23 20 44 61 74 |ections..### Dat| 00000a70 61 62 61 73 65 20 23 23 23 0a 50 52 4f 43 69 6e |abase ###.PROCin| 00000a80 64 65 78 6c 6f 61 64 20 2d 20 67 75 65 73 73 0a |dexload - guess.| 00000a90 50 52 4f 43 67 72 6f 75 70 5f 6c 6f 61 64 28 6e |PROCgroup_load(n| 00000aa0 29 20 2d 20 6c 6f 61 64 73 20 67 72 6f 75 70 20 |) - loads group | 00000ab0 6e 0a 50 52 4f 43 6d 65 6e 75 73 65 74 75 70 64 |n.PROCmenusetupd| 00000ac0 69 6d 73 20 2d 20 73 65 74 73 20 75 70 20 6d 65 |ims - sets up me| 00000ad0 6d 6f 72 79 20 62 6c 6f 63 6b 73 20 66 6f 72 20 |mory blocks for | 00000ae0 6d 65 6e 75 73 0a 46 4e 72 65 61 64 66 69 6c 65 |menus.FNreadfile| 00000af0 20 2d 20 6e 75 6d 62 65 72 20 6f 66 20 62 79 74 | - number of byt| 00000b00 65 73 20 69 6e 20 66 69 6c 65 20 6e 20 2b 20 72 |es in file n + r| 00000b10 65 74 75 72 6e 73 20 6e 75 6d 62 65 72 20 6f 66 |eturns number of| 00000b20 20 6c 69 6e 65 73 20 61 73 20 6c 69 6e 65 73 0a | lines as lines.| 00000b30 50 52 4f 43 63 6f 6d 70 6f 75 6e 64 6d 65 6e 75 |PROCcompoundmenu| 00000b40 73 28 77 68 61 74 29 20 2d 20 73 65 74 73 20 75 |s(what) - sets u| 00000b50 70 20 6d 65 6e 75 73 0a 50 52 4f 43 73 68 6f 77 |p menus.PROCshow| 00000b60 64 61 74 61 62 61 73 65 20 2d 20 75 70 64 61 74 |database - updat| 00000b70 65 73 20 64 61 74 61 62 61 73 65 20 77 69 6e 64 |es database wind| 00000b80 6f 77 0a 50 52 4f 43 66 69 6c 65 5f 65 72 72 6f |ow.PROCfile_erro| 00000b90 72 20 2d 20 65 72 72 6f 72 20 66 6f 72 20 77 72 |r - error for wr| 00000ba0 69 74 69 6e 67 20 74 6f 20 61 20 70 72 6f 74 65 |iting to a prote| 00000bb0 63 74 65 64 20 66 69 6c 65 0a 50 52 4f 43 73 61 |cted file.PROCsa| 00000bc0 76 65 20 2d 20 73 61 76 65 73 20 63 75 72 72 65 |ve - saves curre| 00000bd0 6e 74 20 67 72 6f 75 70 25 0a 50 52 4f 43 64 65 |nt group%.PROCde| 00000be0 6c 65 74 65 20 2d 20 64 65 6c 65 74 65 73 20 63 |lete - deletes c| 00000bf0 6f 6d 70 6f 75 6e 64 20 6e 20 28 63 6f 6d 25 29 |ompound n (com%)| 00000c00 20 66 72 6f 6d 20 67 72 6f 75 70 25 0a 50 52 4f | from group%.PRO| 00000c10 43 73 6f 72 74 41 5a 20 2d 20 73 6f 72 74 73 20 |CsortAZ - sorts | 00000c20 67 72 6f 75 70 25 20 41 2d 5a 20 6f 72 64 65 72 |group% A-Z order| 00000c30 0a 50 52 4f 43 63 72 65 61 74 65 67 72 6f 75 70 |.PROCcreategroup| 00000c40 20 2d 20 73 65 74 73 20 75 70 20 6e 65 77 20 67 | - sets up new g| 00000c50 72 6f 75 70 0a 50 52 4f 43 64 65 6c 65 74 65 67 |roup.PROCdeleteg| 00000c60 72 6f 75 70 20 2d 20 67 75 65 73 73 0a 50 52 4f |roup - guess.PRO| 00000c70 43 69 6e 64 65 78 73 61 76 65 20 2d 20 73 61 76 |Cindexsave - sav| 00000c80 65 73 20 69 6e 64 65 78 0a 50 52 4f 43 61 64 64 |es index.PROCadd| 00000c90 28 74 65 78 74 24 29 20 2d 20 61 64 64 73 20 63 |(text$) - adds c| 00000ca0 6f 6d 70 6f 75 6e 64 20 74 65 78 74 24 20 74 6f |ompound text$ to| 00000cb0 20 67 72 6f 75 70 25 0a 0a 23 23 23 20 48 65 6c | group%..### Hel| 00000cc0 70 50 52 4f 43 73 20 23 23 23 0a 46 4e 68 65 6c |pPROCs ###.FNhel| 00000cd0 70 6d 65 73 73 61 67 65 28 77 69 6e 64 6f 77 25 |pmessage(window%| 00000ce0 2c 69 63 6f 6e 25 29 20 3d 20 6d 65 73 73 61 67 |,icon%) = messag| 00000cf0 65 20 66 6f 72 20 69 63 6f 6e 25 20 69 6e 20 77 |e for icon% in w| 00000d00 69 6e 64 6f 77 25 0a 0a 23 23 23 20 49 63 6f 6e |indow%..### Icon| 00000d10 50 52 4f 43 73 20 23 23 23 0a 46 4e 72 65 61 64 |PROCs ###.FNread| 00000d20 69 63 6f 6e 28 77 69 6e 2c 69 63 6f 6e 25 29 20 |icon(win,icon%) | 00000d30 2d 20 72 65 74 75 72 6e 73 20 74 68 65 20 74 65 |- returns the te| 00000d40 78 74 20 66 6f 72 6d 20 74 68 65 20 69 63 6f 6e |xt form the icon| 00000d50 20 69 63 6f 6e 25 20 69 6e 20 77 69 6e 64 6f 77 | icon% in window| 00000d60 20 77 69 6e 25 0a 50 52 4f 43 69 63 6f 6e 74 65 | win%.PROCiconte| 00000d70 78 74 28 77 69 6e 2c 69 63 6f 6e 2c 74 65 78 74 |xt(win,icon,text| 00000d80 24 29 20 2d 20 75 70 64 61 74 65 73 20 73 61 69 |$) - updates sai| 00000d90 64 20 69 63 6f 6e 20 77 69 74 68 20 74 65 78 74 |d icon with text| 00000da0 24 0a 46 4e 63 72 65 61 74 65 5f 69 63 6f 6e 28 |$.FNcreate_icon(| 00000db0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 29 |---------------)| 00000dc0 20 2d 20 63 72 65 61 74 65 73 20 69 63 6f 6e 20 | - creates icon | 00000dd0 77 69 74 68 20 61 73 73 69 67 6e 65 64 20 70 72 |with assigned pr| 00000de0 6f 70 65 72 69 74 65 73 0a 46 4e 69 63 6f 6e 5f |operites.FNicon_| 00000df0 66 6c 61 67 73 20 2d 20 72 65 74 75 72 6e 73 20 |flags - returns | 00000e00 76 61 6c 75 65 20 66 6f 72 20 61 6e 20 69 63 6f |value for an ico| 00000e10 6e 20 77 69 74 68 20 61 73 73 69 67 6e 65 64 20 |n with assigned | 00000e20 70 72 6f 70 65 72 74 69 65 73 0a 0a 23 23 23 20 |properties..### | 00000e30 4d 65 6e 75 50 52 4f 43 73 20 23 23 23 0a 46 4e |MenuPROCs ###.FN| 00000e40 64 65 63 6f 64 65 28 62 25 29 20 3d 20 72 65 74 |decode(b%) = ret| 00000e50 75 72 6e 73 20 74 68 65 20 69 74 65 6d 20 73 65 |urns the item se| 00000e60 6c 65 63 74 65 64 20 61 73 20 74 65 78 74 0a 50 |lected as text.P| 00000e70 52 4f 43 6d 65 6e 75 68 65 61 64 65 72 28 6d 65 |ROCmenuheader(me| 00000e80 6e 75 25 2c 74 69 74 6c 65 24 29 20 2d 20 73 65 |nu%,title$) - se| 00000e90 74 73 20 75 70 20 6d 65 6e 75 20 68 65 61 64 65 |ts up menu heade| 00000ea0 72 20 61 74 20 6d 65 6d 6f 72 79 20 6c 6f 63 61 |r at memory loca| 00000eb0 74 69 6f 6e 20 6d 65 6e 75 25 20 77 69 74 68 20 |tion menu% with | 00000ec0 74 69 74 6c 65 24 0a 50 52 4f 43 6d 65 6e 75 69 |title$.PROCmenui| 00000ed0 74 65 6d 28 6d 65 6e 75 25 2c 6d 66 6c 61 67 73 |tem(menu%,mflags| 00000ee0 25 2c 73 75 62 70 74 72 25 2c 69 74 65 6d 24 29 |%,subptr%,item$)| 00000ef0 20 2d 20 61 64 64 73 20 77 68 61 74 20 65 76 65 | - adds what eve| 00000f00 72 20 69 74 65 6d 20 74 6f 20 6d 65 6e 75 20 6d |r item to menu m| 00000f10 65 6e 75 25 0a 50 52 4f 43 73 65 74 75 70 6d 65 |enu%.PROCsetupme| 00000f20 6e 75 20 2d 20 73 65 74 74 73 20 75 70 20 6d 65 |nu - setts up me| 00000f30 6e 75 73 20 64 65 66 69 6e 65 64 20 69 6e 20 64 |nus defined in d| 00000f40 61 74 61 6c 69 6e 65 73 20 61 74 20 74 68 65 20 |atalines at the | 00000f50 65 6e 64 20 6f 66 20 52 75 6e 49 6d 61 67 65 0a |end of RunImage.| 00000f60 46 4e 6d 65 6e 75 66 6c 61 67 73 20 2d 20 72 65 |FNmenuflags - re| 00000f70 74 75 72 6e 73 20 74 68 65 20 66 61 6c 67 20 76 |turns the falg v| 00000f80 61 6c 75 65 20 66 72 6f 6d 20 61 73 73 69 67 6e |alue from assign| 00000f90 65 64 20 70 72 6f 70 65 72 74 69 65 73 0a 50 52 |ed properties.PR| 00000fa0 4f 43 73 68 6f 77 6d 65 6e 75 28 6d 65 6e 75 25 |OCshowmenu(menu%| 00000fb0 2c 78 2c 79 29 20 2d 20 64 69 73 70 6c 61 79 73 |,x,y) - displays| 00000fc0 20 6d 65 6e 75 20 61 74 20 28 78 2c 79 29 20 70 | menu at (x,y) p| 00000fd0 6f 73 69 74 69 6f 6e 0a 50 52 4f 43 61 72 72 6f |osition.PROCarro| 00000fe0 77 73 28 6d 65 6e 75 25 2c 6f 6e 2f 6f 66 66 29 |ws(menu%,on/off)| 00000ff0 20 2d 20 74 75 72 6e 73 20 61 72 72 6f 77 73 20 | - turns arrows | 00001000 6f 6e 2f 6f 66 66 20 66 6f 72 20 6d 61 69 6e 20 |on/off for main | 00001010 64 61 74 61 62 61 73 65 20 6d 65 6e 75 0a 0a 0a |database menu...| 00001020