home *** CD-ROM | disk | FTP | other *** search
- BasEntry v1.00
-
- ©HRMills 1992.
-
- For licence agreement, see the file 'License'
-
- A brief conversation
- ====================
- Hugo: What we need is a proper script language. You know - with loops and things.
- Dave: We've got one. It's called BASIC.
- Hugo: Yes, but what about parameter substitution, like in Obey files?
- Dave: Well, can't you write something to do it?
-
- And so I did...
-
- Usage
- =====
- Make the following the first two lines of your code:
-
- LIBRARY "%.BasEntry"
- PROCentry
-
- This defines two variables - argc (a number) and argv$() (an array).
- These are identical to the argc and argv of C. Examples of the use of
- the BasEntry library are also included in the Library directory. These
- are designed for use in task windows (except WaitThen, which can be used
- in Obey files), and are described below.
-
- Pause =====
-
- Pause <n>
-
- waits for n centiseconds, then continues. Should only really be used in
- Task windows (but can be used in Obey files, at the expense of having
- the desktop hang up while the Obey file os paused).
-
- WaitThen
- ========
- WaitThen <n> <command> [-W]
-
- waits for n centiseconds, then executes the command. If the -W option is
- present (in the last place), then it starts up as a wimp task (so that
- it can be used in Obey files).
-
- WaitTill
- ========
- WaitTill <var>
-
- waits until the variable <var> is defined, then returns. This should
- only be used in Task windows.
-
- And Finally...
- ==============
- If you're having trouble with the tabs in this file, expand them as
- 4-space tabs in !StrongEd2. What? You don't have a copy? Oh dear.
-
- Any correspondence, new backdrops, etc. can be sent to:
-
- Hugo Mills,
- Gonville & Caius College, or 12 Jesse Terrace,
- Cambridge. Reading.
- CB2 1TA RG1 7RT
-
- or e-mailed to:
-
- hrm11@phx.cam.ac.uk
-
- Any letter bombs, death-threats, etc. can be sent somewhere else. Please.
-