Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #5843

Re: Very rusty programmer here

From News <chrisjohnson@spamcop.net>
Subject Re: Very rusty programmer here
Newsgroups comp.sys.acorn.programmer
Date 2019-10-07 10:52 +0100
Message-ID <57ff29a585chrisjohnson@spamcop.net> (permalink)
References <57feeb479bbrian.jordan9@btinternet.com>
Organization None

Show all headers | View raw


In article <57feeb479bbrian.jordan9@btinternet.com>,
   Brian Jordan <brian.jordan9@btinternet.com> wrote:
> I /think I know/ that it is possible to read a system variable and
> to use the result within a BASIC program.

Yes. You need something on the lines of:

DIM block% 256
SYS"OS_ReadVarVal", "MyApp$Dir", block%, 256, 0, 3 TO ,,len%
block%?len% = 13 :REM Basic terminator
path$ = $(block%)

-- 
Chris Johnson

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Very rusty programmer here Brian Jordan <brian.jordan9@btinternet.com> - 2019-10-06 23:31 +0100
  Re: Very rusty programmer here Sebastian Barthel <naitsabes@freenet.de> - 2019-10-07 03:05 +0000
  Re: Very rusty programmer here News <chrisjohnson@spamcop.net> - 2019-10-07 10:52 +0100

csiph-web