Home » Archimedes archive » Zipped Apps » PipeDream » Functions/Misc

Functions/Misc

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 » Zipped Apps » PipeDream
Filename: Functions/Misc
Read OK:
File size: 078B bytes
Load address: 0000
Exec address: 0000
Duplicates

There is 1 duplicate copy of this file in the archive:

File contents
%OP%VS4.12 Test (Dec 12 1991), Colton Software - Development, R0123 4567 8901 2345
%OP%DP4
%OP%LP*
%OP%TM4
%OP%BM4
%OP%LM5
%OP%FX
%OP%FY
%OP%FS
%OP%WC20,1910,220,1008,0,0,0,0
%OP%NDvariable,C18
%OP%NDname,"Dogbreath"
%CO:A,11,100%
%C%%H1%Miscellaneous Functions Examples

User :
%V%%R%name

Function

Alert
Col
Cols
Deref
If
Input
Round
Row
Rows
Set_Name
Set_Value
Type
Version
%CO:B,10,0%





%R%Input 1

%R%Text
%R%C6
%R%B7G10
%R%slot ref
%R%C15=2
%R%Text
%V%%R%456.3566
%R%C6
%R%A11D16
%R%variable
%V%%R%4
%R%text
%R%-
%CO:C,9,0%





%R%Input 2

%R%Button 1
%R%-
%R%-
%R%-
%R%True
%R%variable
%V%%R%2
%R%-
%R%-
%V%%R%-1
%V%%R%2+2
%V%%R%2
%R%-
%CO:D,9,0%





%R%Input 3

%R%Button 2
%R%-
%R%-
%R%-
%R%False
%R%Button
%R%-
%R%-
%R%-
%R%-
%R%-
%V%%R%{1,2;3,4}
%R%-
%CO:E,10,0%





%R%Output

%V%%R%alert("This is an ALERT example.","OK","Cancel")
%V%%R%col(C6)
%V%%R%cols(B7G10)
%V%%R%deref(B12)
%V%%R%if(C15=2,"True","False")
%V%%R%input("What is your name ?","name","OK")
%V%%R%round(B15,C15)
%V%%R%row(C6)
%V%%R%rows(A11D16)
%V%%R%set_name(B18,C18)
%V%%R%set_value(B19,C19)
%V%%R%type(deref(D20))
%V%%R%version
%CO:F,2,0%%CO:G,74,0%





Summary

Opens a window containing some text and up to two buttons.
Returns the column number (A=1) of %H4%Input1%H4% or current column if absent.
Returns the number of columns in the range specified.
Dereferences a slot reference - see Type.
If %H4%Input1%H4% condition is true, %H4%Input2%H4% returned otherwise %H4%Input3%H4%.
Opens a window with a writeable icon and up to two buttons.
Rounds %H4%Input1%H4% to %H4%Input2%H4% decimal places. %H4%Input2%H4% may be negative.
Returns the row number of %H4%Input1%H4% or the current column if absent.
Returns the number of rows in the range specified.
Defines a variable and assigns a value to it.
Sets the contents of a specific slot to a given value.
Returns the type of a specific slot.
Returns the version of PipeDream being used.
00000000  25 4f 50 25 56 53 34 2e  31 32 20 54 65 73 74 20  |%OP%VS4.12 Test |
00000010  28 44 65 63 20 31 32 20  31 39 39 31 29 2c 20 43  |(Dec 12 1991), C|
00000020  6f 6c 74 6f 6e 20 53 6f  66 74 77 61 72 65 20 2d  |olton Software -|
00000030  20 44 65 76 65 6c 6f 70  6d 65 6e 74 2c 20 52 30  | Development, R0|
00000040  31 32 33 20 34 35 36 37  20 38 39 30 31 20 32 33  |123 4567 8901 23|
00000050  34 35 0a 25 4f 50 25 44  50 34 0a 25 4f 50 25 4c  |45.%OP%DP4.%OP%L|
00000060  50 2a 0a 25 4f 50 25 54  4d 34 0a 25 4f 50 25 42  |P*.%OP%TM4.%OP%B|
00000070  4d 34 0a 25 4f 50 25 4c  4d 35 0a 25 4f 50 25 46  |M4.%OP%LM5.%OP%F|
00000080  58 0a 25 4f 50 25 46 59  0a 25 4f 50 25 46 53 0a  |X.%OP%FY.%OP%FS.|
00000090  25 4f 50 25 57 43 32 30  2c 31 39 31 30 2c 32 32  |%OP%WC20,1910,22|
000000a0  30 2c 31 30 30 38 2c 30  2c 30 2c 30 2c 30 0a 25  |0,1008,0,0,0,0.%|
000000b0  4f 50 25 4e 44 76 61 72  69 61 62 6c 65 2c 43 31  |OP%NDvariable,C1|
000000c0  38 0a 25 4f 50 25 4e 44  6e 61 6d 65 2c 22 44 6f  |8.%OP%NDname,"Do|
000000d0  67 62 72 65 61 74 68 22  0a 25 43 4f 3a 41 2c 31  |gbreath".%CO:A,1|
000000e0  31 2c 31 30 30 25 0a 25  43 25 25 48 31 25 4d 69  |1,100%.%C%%H1%Mi|
000000f0  73 63 65 6c 6c 61 6e 65  6f 75 73 20 46 75 6e 63  |scellaneous Func|
00000100  74 69 6f 6e 73 20 45 78  61 6d 70 6c 65 73 0a 0a  |tions Examples..|
00000110  55 73 65 72 20 3a 0a 25  56 25 25 52 25 6e 61 6d  |User :.%V%%R%nam|
00000120  65 0a 0a 46 75 6e 63 74  69 6f 6e 0a 0a 41 6c 65  |e..Function..Ale|
00000130  72 74 0a 43 6f 6c 0a 43  6f 6c 73 0a 44 65 72 65  |rt.Col.Cols.Dere|
00000140  66 0a 49 66 0a 49 6e 70  75 74 0a 52 6f 75 6e 64  |f.If.Input.Round|
00000150  0a 52 6f 77 0a 52 6f 77  73 0a 53 65 74 5f 4e 61  |.Row.Rows.Set_Na|
00000160  6d 65 0a 53 65 74 5f 56  61 6c 75 65 0a 54 79 70  |me.Set_Value.Typ|
00000170  65 0a 56 65 72 73 69 6f  6e 0a 25 43 4f 3a 42 2c  |e.Version.%CO:B,|
00000180  31 30 2c 30 25 0a 0a 0a  0a 0a 0a 25 52 25 49 6e  |10,0%......%R%In|
00000190  70 75 74 20 31 0a 0a 25  52 25 54 65 78 74 0a 25  |put 1..%R%Text.%|
000001a0  52 25 43 36 0a 25 52 25  42 37 47 31 30 0a 25 52  |R%C6.%R%B7G10.%R|
000001b0  25 73 6c 6f 74 20 72 65  66 0a 25 52 25 43 31 35  |%slot ref.%R%C15|
000001c0  3d 32 0a 25 52 25 54 65  78 74 0a 25 56 25 25 52  |=2.%R%Text.%V%%R|
000001d0  25 34 35 36 2e 33 35 36  36 0a 25 52 25 43 36 0a  |%456.3566.%R%C6.|
000001e0  25 52 25 41 31 31 44 31  36 0a 25 52 25 76 61 72  |%R%A11D16.%R%var|
000001f0  69 61 62 6c 65 0a 25 56  25 25 52 25 34 0a 25 52  |iable.%V%%R%4.%R|
00000200  25 74 65 78 74 0a 25 52  25 2d 0a 25 43 4f 3a 43  |%text.%R%-.%CO:C|
00000210  2c 39 2c 30 25 0a 0a 0a  0a 0a 0a 25 52 25 49 6e  |,9,0%......%R%In|
00000220  70 75 74 20 32 0a 0a 25  52 25 42 75 74 74 6f 6e  |put 2..%R%Button|
00000230  20 31 0a 25 52 25 2d 0a  25 52 25 2d 0a 25 52 25  | 1.%R%-.%R%-.%R%|
00000240  2d 0a 25 52 25 54 72 75  65 0a 25 52 25 76 61 72  |-.%R%True.%R%var|
00000250  69 61 62 6c 65 0a 25 56  25 25 52 25 32 0a 25 52  |iable.%V%%R%2.%R|
00000260  25 2d 0a 25 52 25 2d 0a  25 56 25 25 52 25 2d 31  |%-.%R%-.%V%%R%-1|
00000270  0a 25 56 25 25 52 25 32  2b 32 0a 25 56 25 25 52  |.%V%%R%2+2.%V%%R|
00000280  25 32 0a 25 52 25 2d 0a  25 43 4f 3a 44 2c 39 2c  |%2.%R%-.%CO:D,9,|
00000290  30 25 0a 0a 0a 0a 0a 0a  25 52 25 49 6e 70 75 74  |0%......%R%Input|
000002a0  20 33 0a 0a 25 52 25 42  75 74 74 6f 6e 20 32 0a  | 3..%R%Button 2.|
000002b0  25 52 25 2d 0a 25 52 25  2d 0a 25 52 25 2d 0a 25  |%R%-.%R%-.%R%-.%|
000002c0  52 25 46 61 6c 73 65 0a  25 52 25 42 75 74 74 6f  |R%False.%R%Butto|
000002d0  6e 0a 25 52 25 2d 0a 25  52 25 2d 0a 25 52 25 2d  |n.%R%-.%R%-.%R%-|
000002e0  0a 25 52 25 2d 0a 25 52  25 2d 0a 25 56 25 25 52  |.%R%-.%R%-.%V%%R|
000002f0  25 7b 31 2c 32 3b 33 2c  34 7d 0a 25 52 25 2d 0a  |%{1,2;3,4}.%R%-.|
00000300  25 43 4f 3a 45 2c 31 30  2c 30 25 0a 0a 0a 0a 0a  |%CO:E,10,0%.....|
00000310  0a 25 52 25 4f 75 74 70  75 74 0a 0a 25 56 25 25  |.%R%Output..%V%%|
00000320  52 25 61 6c 65 72 74 28  22 54 68 69 73 20 69 73  |R%alert("This is|
00000330  20 61 6e 20 41 4c 45 52  54 20 65 78 61 6d 70 6c  | an ALERT exampl|
00000340  65 2e 22 2c 22 4f 4b 22  2c 22 43 61 6e 63 65 6c  |e.","OK","Cancel|
00000350  22 29 0a 25 56 25 25 52  25 63 6f 6c 28 43 36 29  |").%V%%R%col(C6)|
00000360  0a 25 56 25 25 52 25 63  6f 6c 73 28 42 37 47 31  |.%V%%R%cols(B7G1|
00000370  30 29 0a 25 56 25 25 52  25 64 65 72 65 66 28 42  |0).%V%%R%deref(B|
00000380  31 32 29 0a 25 56 25 25  52 25 69 66 28 43 31 35  |12).%V%%R%if(C15|
00000390  3d 32 2c 22 54 72 75 65  22 2c 22 46 61 6c 73 65  |=2,"True","False|
000003a0  22 29 0a 25 56 25 25 52  25 69 6e 70 75 74 28 22  |").%V%%R%input("|
000003b0  57 68 61 74 20 69 73 20  79 6f 75 72 20 6e 61 6d  |What is your nam|
000003c0  65 20 3f 22 2c 22 6e 61  6d 65 22 2c 22 4f 4b 22  |e ?","name","OK"|
000003d0  29 0a 25 56 25 25 52 25  72 6f 75 6e 64 28 42 31  |).%V%%R%round(B1|
000003e0  35 2c 43 31 35 29 0a 25  56 25 25 52 25 72 6f 77  |5,C15).%V%%R%row|
000003f0  28 43 36 29 0a 25 56 25  25 52 25 72 6f 77 73 28  |(C6).%V%%R%rows(|
00000400  41 31 31 44 31 36 29 0a  25 56 25 25 52 25 73 65  |A11D16).%V%%R%se|
00000410  74 5f 6e 61 6d 65 28 42  31 38 2c 43 31 38 29 0a  |t_name(B18,C18).|
00000420  25 56 25 25 52 25 73 65  74 5f 76 61 6c 75 65 28  |%V%%R%set_value(|
00000430  42 31 39 2c 43 31 39 29  0a 25 56 25 25 52 25 74  |B19,C19).%V%%R%t|
00000440  79 70 65 28 64 65 72 65  66 28 44 32 30 29 29 0a  |ype(deref(D20)).|
00000450  25 56 25 25 52 25 76 65  72 73 69 6f 6e 0a 25 43  |%V%%R%version.%C|
00000460  4f 3a 46 2c 32 2c 30 25  25 43 4f 3a 47 2c 37 34  |O:F,2,0%%CO:G,74|
00000470  2c 30 25 0a 0a 0a 0a 0a  0a 53 75 6d 6d 61 72 79  |,0%......Summary|
00000480  0a 0a 4f 70 65 6e 73 20  61 20 77 69 6e 64 6f 77  |..Opens a window|
00000490  20 63 6f 6e 74 61 69 6e  69 6e 67 20 73 6f 6d 65  | containing some|
000004a0  20 74 65 78 74 20 61 6e  64 20 75 70 20 74 6f 20  | text and up to |
000004b0  74 77 6f 20 62 75 74 74  6f 6e 73 2e 0a 52 65 74  |two buttons..Ret|
000004c0  75 72 6e 73 20 74 68 65  20 63 6f 6c 75 6d 6e 20  |urns the column |
000004d0  6e 75 6d 62 65 72 20 28  41 3d 31 29 20 6f 66 20  |number (A=1) of |
000004e0  25 48 34 25 49 6e 70 75  74 31 25 48 34 25 20 6f  |%H4%Input1%H4% o|
000004f0  72 20 63 75 72 72 65 6e  74 20 63 6f 6c 75 6d 6e  |r current column|
00000500  20 69 66 20 61 62 73 65  6e 74 2e 0a 52 65 74 75  | if absent..Retu|
00000510  72 6e 73 20 74 68 65 20  6e 75 6d 62 65 72 20 6f  |rns the number o|
00000520  66 20 63 6f 6c 75 6d 6e  73 20 69 6e 20 74 68 65  |f columns in the|
00000530  20 72 61 6e 67 65 20 73  70 65 63 69 66 69 65 64  | range specified|
00000540  2e 0a 44 65 72 65 66 65  72 65 6e 63 65 73 20 61  |..Dereferences a|
00000550  20 73 6c 6f 74 20 72 65  66 65 72 65 6e 63 65 20  | slot reference |
00000560  2d 20 73 65 65 20 54 79  70 65 2e 0a 49 66 20 25  |- see Type..If %|
00000570  48 34 25 49 6e 70 75 74  31 25 48 34 25 20 63 6f  |H4%Input1%H4% co|
00000580  6e 64 69 74 69 6f 6e 20  69 73 20 74 72 75 65 2c  |ndition is true,|
00000590  20 25 48 34 25 49 6e 70  75 74 32 25 48 34 25 20  | %H4%Input2%H4% |
000005a0  72 65 74 75 72 6e 65 64  20 6f 74 68 65 72 77 69  |returned otherwi|
000005b0  73 65 20 25 48 34 25 49  6e 70 75 74 33 25 48 34  |se %H4%Input3%H4|
000005c0  25 2e 0a 4f 70 65 6e 73  20 61 20 77 69 6e 64 6f  |%..Opens a windo|
000005d0  77 20 77 69 74 68 20 61  20 77 72 69 74 65 61 62  |w with a writeab|
000005e0  6c 65 20 69 63 6f 6e 20  61 6e 64 20 75 70 20 74  |le icon and up t|
000005f0  6f 20 74 77 6f 20 62 75  74 74 6f 6e 73 2e 0a 52  |o two buttons..R|
00000600  6f 75 6e 64 73 20 25 48  34 25 49 6e 70 75 74 31  |ounds %H4%Input1|
00000610  25 48 34 25 20 74 6f 20  25 48 34 25 49 6e 70 75  |%H4% to %H4%Inpu|
00000620  74 32 25 48 34 25 20 64  65 63 69 6d 61 6c 20 70  |t2%H4% decimal p|
00000630  6c 61 63 65 73 2e 20 25  48 34 25 49 6e 70 75 74  |laces. %H4%Input|
00000640  32 25 48 34 25 20 6d 61  79 20 62 65 20 6e 65 67  |2%H4% may be neg|
00000650  61 74 69 76 65 2e 0a 52  65 74 75 72 6e 73 20 74  |ative..Returns t|
00000660  68 65 20 72 6f 77 20 6e  75 6d 62 65 72 20 6f 66  |he row number of|
00000670  20 25 48 34 25 49 6e 70  75 74 31 25 48 34 25 20  | %H4%Input1%H4% |
00000680  6f 72 20 74 68 65 20 63  75 72 72 65 6e 74 20 63  |or the current c|
00000690  6f 6c 75 6d 6e 20 69 66  20 61 62 73 65 6e 74 2e  |olumn if absent.|
000006a0  0a 52 65 74 75 72 6e 73  20 74 68 65 20 6e 75 6d  |.Returns the num|
000006b0  62 65 72 20 6f 66 20 72  6f 77 73 20 69 6e 20 74  |ber of rows in t|
000006c0  68 65 20 72 61 6e 67 65  20 73 70 65 63 69 66 69  |he range specifi|
000006d0  65 64 2e 0a 44 65 66 69  6e 65 73 20 61 20 76 61  |ed..Defines a va|
000006e0  72 69 61 62 6c 65 20 61  6e 64 20 61 73 73 69 67  |riable and assig|
000006f0  6e 73 20 61 20 76 61 6c  75 65 20 74 6f 20 69 74  |ns a value to it|
00000700  2e 0a 53 65 74 73 20 74  68 65 20 63 6f 6e 74 65  |..Sets the conte|
00000710  6e 74 73 20 6f 66 20 61  20 73 70 65 63 69 66 69  |nts of a specifi|
00000720  63 20 73 6c 6f 74 20 74  6f 20 61 20 67 69 76 65  |c slot to a give|
00000730  6e 20 76 61 6c 75 65 2e  0a 52 65 74 75 72 6e 73  |n value..Returns|
00000740  20 74 68 65 20 74 79 70  65 20 6f 66 20 61 20 73  | the type of a s|
00000750  70 65 63 69 66 69 63 20  73 6c 6f 74 2e 0a 52 65  |pecific slot..Re|
00000760  74 75 72 6e 73 20 74 68  65 20 76 65 72 73 69 6f  |turns the versio|
00000770  6e 20 6f 66 20 50 69 70  65 44 72 65 61 6d 20 62  |n of PipeDream b|
00000780  65 69 6e 67 20 75 73 65  64 2e 0a                 |eing used..|
0000078b