Home » Archimedes archive » Acorn User » AU 1995-04.adf » !Internet_StarterPak » !SLIPdial/Resources/UK/Help/ask

!SLIPdial/Resources/UK/Help/ask

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 1995-04.adf » !Internet_StarterPak
Filename: !SLIPdial/Resources/UK/Help/ask
Read OK:
File size: 022C bytes
Load address: 0000
Exec address: 0000
File contents
ask [/delay=<n>] [/default=<yes|no>] <question>
 brings up a window asking for a yes/no answer from the user. Returns 1
 if 'yes' is clicked; 0 if 'no' is clicked.
 /delay=<n>     sets timeout (in seconds). If no response is received
                within this time, the default answer is returned.
 /default=<y|n> sets the default answer returned if the command times
                out. If unspecified, 'no' (0) is assumed. Note that, at
                present, the default answer is not highlighted in any
                way on the dialogue window.
00000000  61 73 6b 20 5b 2f 64 65  6c 61 79 3d 3c 6e 3e 5d  |ask [/delay=<n>]|
00000010  20 5b 2f 64 65 66 61 75  6c 74 3d 3c 79 65 73 7c  | [/default=<yes||
00000020  6e 6f 3e 5d 20 3c 71 75  65 73 74 69 6f 6e 3e 0a  |no>] <question>.|
00000030  20 62 72 69 6e 67 73 20  75 70 20 61 20 77 69 6e  | brings up a win|
00000040  64 6f 77 20 61 73 6b 69  6e 67 20 66 6f 72 20 61  |dow asking for a|
00000050  20 79 65 73 2f 6e 6f 20  61 6e 73 77 65 72 20 66  | yes/no answer f|
00000060  72 6f 6d 20 74 68 65 20  75 73 65 72 2e 20 52 65  |rom the user. Re|
00000070  74 75 72 6e 73 20 31 0a  20 69 66 20 27 79 65 73  |turns 1. if 'yes|
00000080  27 20 69 73 20 63 6c 69  63 6b 65 64 3b 20 30 20  |' is clicked; 0 |
00000090  69 66 20 27 6e 6f 27 20  69 73 20 63 6c 69 63 6b  |if 'no' is click|
000000a0  65 64 2e 0a 20 2f 64 65  6c 61 79 3d 3c 6e 3e 20  |ed.. /delay=<n> |
000000b0  20 20 20 20 73 65 74 73  20 74 69 6d 65 6f 75 74  |    sets timeout|
000000c0  20 28 69 6e 20 73 65 63  6f 6e 64 73 29 2e 20 49  | (in seconds). I|
000000d0  66 20 6e 6f 20 72 65 73  70 6f 6e 73 65 20 69 73  |f no response is|
000000e0  20 72 65 63 65 69 76 65  64 0a 20 20 20 20 20 20  | received.      |
000000f0  20 20 20 20 20 20 20 20  20 20 77 69 74 68 69 6e  |          within|
00000100  20 74 68 69 73 20 74 69  6d 65 2c 20 74 68 65 20  | this time, the |
00000110  64 65 66 61 75 6c 74 20  61 6e 73 77 65 72 20 69  |default answer i|
00000120  73 20 72 65 74 75 72 6e  65 64 2e 0a 20 2f 64 65  |s returned.. /de|
00000130  66 61 75 6c 74 3d 3c 79  7c 6e 3e 20 73 65 74 73  |fault=<y|n> sets|
00000140  20 74 68 65 20 64 65 66  61 75 6c 74 20 61 6e 73  | the default ans|
00000150  77 65 72 20 72 65 74 75  72 6e 65 64 20 69 66 20  |wer returned if |
00000160  74 68 65 20 63 6f 6d 6d  61 6e 64 20 74 69 6d 65  |the command time|
00000170  73 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |s.              |
00000180  20 20 6f 75 74 2e 20 49  66 20 75 6e 73 70 65 63  |  out. If unspec|
00000190  69 66 69 65 64 2c 20 27  6e 6f 27 20 28 30 29 20  |ified, 'no' (0) |
000001a0  69 73 20 61 73 73 75 6d  65 64 2e 20 4e 6f 74 65  |is assumed. Note|
000001b0  20 74 68 61 74 2c 20 61  74 0a 20 20 20 20 20 20  | that, at.      |
000001c0  20 20 20 20 20 20 20 20  20 20 70 72 65 73 65 6e  |          presen|
000001d0  74 2c 20 74 68 65 20 64  65 66 61 75 6c 74 20 61  |t, the default a|
000001e0  6e 73 77 65 72 20 69 73  20 6e 6f 74 20 68 69 67  |nswer is not hig|
000001f0  68 6c 69 67 68 74 65 64  20 69 6e 20 61 6e 79 0a  |hlighted in any.|
00000200  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000210  77 61 79 20 6f 6e 20 74  68 65 20 64 69 61 6c 6f  |way on the dialo|
00000220  67 75 65 20 77 69 6e 64  6f 77 2e 0a              |gue window..|
0000022c