Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #5841 > unrolled thread
| Started by | Brian Jordan <brian.jordan9@btinternet.com> |
|---|---|
| First post | 2019-10-06 23:31 +0100 |
| Last post | 2019-10-07 10:52 +0100 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.sys.acorn.programmer
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
| From | Brian Jordan <brian.jordan9@btinternet.com> |
|---|---|
| Date | 2019-10-06 23:31 +0100 |
| Subject | Very rusty programmer here |
| Message-ID | <57feeb479bbrian.jordan9@btinternet.com> |
Same rusty programmer - new problem... I /think I know/ that it is possible to read a system variable and to use the result within a BASIC program. After a fruitless evening with the PRM I wonder if someone could drop me a hint? For instance I know that, eg using *SHOW, I see that Alias$@RunType_B28 returns information that shows NetSurf has 'claimed' this file type (URL). I am trying to find a way to get that information into a string in BASIC. I hope that it is the syntax rather than the concept that is eluding me. Any hints appreciated. Thanks -- _____________________________________________________________________ Brian Jordan RISC OS 5.23 on Raspberry Pi _____________________________________________________________________
[toc] | [next] | [standalone]
| From | Sebastian Barthel <naitsabes@freenet.de> |
|---|---|
| Date | 2019-10-07 03:05 +0000 |
| Message-ID | <qnea24$e9j$1@solani.org> |
| In reply to | #5841 |
Am Sun, 06 Oct 2019 23:31:09 +0100 schrieb Brian Jordan: > Same rusty programmer - new problem... > > I /think I know/ that it is possible to read a system variable and to > use the result within a BASIC program. After a fruitless evening with > the PRM I wonder if someone could drop me a hint? "OS_ReadVarVal" should do the trick ... > For instance I know that, eg using *SHOW, I see that Alias$@RunType_B28 > returns information that shows NetSurf has 'claimed' this file type > (URL). I am trying to find a way to get that information into a string > in BASIC. Probably there is another variant to do this by using the OSCLI command. with OSCLI "SHOW Alias$RunType_B28" You can command BASIC to do the same thing as You did on the command line.
[toc] | [prev] | [next] | [standalone]
| From | News <chrisjohnson@spamcop.net> |
|---|---|
| Date | 2019-10-07 10:52 +0100 |
| Message-ID | <57ff29a585chrisjohnson@spamcop.net> |
| In reply to | #5841 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.sys.acorn.programmer
csiph-web