Search found 92 matches

by KenDown
Sun 15 Dec 2019, 20:46
Forum: Announcements
Topic: BBC BASIC for SDL 2.0 version 1.08a released
Replies: 31
Views: 315

Re: BBC BASIC for SDL 2.0 version 1.08a released

I presume that the "fail" which is being discussed is what has just happened to me. I double-clicked on bbcsdl.exe and a window opened with a copyright message but nothing else. I entered the SYS command you specified and PRINT $$p% gave C:\Program Files (x86)\BBC SDL\ I closed that window, double-c...
by KenDown
Mon 09 Dec 2019, 17:49
Forum: Database and Files
Topic: Simplest editor for a String?
Replies: 16
Views: 303

Re: Simplest editor for a String?

Er - the comments about GOTO and CASE were mine, not Richard's. I am flattered that you should think it was his post, but he possibly is less so! += is a shorthand way of incrementing a value. So you can have a%=a%+4, but a%+=4 is shorter and, I believe, faster for the computer to interpret. What ca...
by KenDown
Sat 07 Dec 2019, 23:50
Forum: Database and Files
Topic: Simplest editor for a String?
Replies: 16
Views: 303

Re: Simplest editor for a String?

Glad to have been of help. Why on earth use a GOTO? What's wrong with REPEAT PROC_EditLine(S$) UNTIL FALSE Likewise down at line 200 IF G = 44 ELSE IF G > 31 AND G<127 THEN L$ = L$ + CHR$(G) Once you have done that, you can get rid of the line numbers, which will improve readability - which in turn ...
by KenDown
Wed 04 Dec 2019, 04:13
Forum: Database and Files
Topic: Simplest editor for a String?
Replies: 16
Views: 303

Re: Simplest editor for a String?

Well, my setup in 1920x1080, so if yours is different you will have to alter the setting for my%. Insert the word STOP immediately after the MOUSE command, then run the program, click on the string and see what value you get with PRINTmy%. The simplest way of making the program portable is to set th...
by KenDown
Sun 01 Dec 2019, 18:32
Forum: Database and Files
Topic: Simplest editor for a String?
Replies: 16
Views: 303

Re: Simplest editor for a String?

I wonder if something like this is what you have in mind? a$="01 Mar 16 Cash transaction 255.73" PRINTTAB(2,10)a$ REPEAT MOUSEmx%,my%,mb% UNTILmb%=4 my%=1140 c%=(mx%-34)DIV16 VDU5:GCOL3,2:MOVEmx%-8,my%:PRINT"|":VDU4 REPEAT g%=GET VDU5:GCOL3,2:MOVEmx%-8,my%:PRINT"|":VDU4 CASEg%OF WHEN8 a$=LEFT$(a$,c%...
by KenDown
Tue 26 Nov 2019, 08:02
Forum: BBC BASIC language
Topic: Technical descriptions of BBC BASIC
Replies: 5
Views: 213

Re: Technical descriptions of BBC BASIC

I don't know whether archives of "Acorn User" and "BBC Micro User" are available, but from time to time they carried articles or series of articles which may contain the information you need.
by KenDown
Tue 12 Nov 2019, 04:39
Forum: BBC BASIC language
Topic: GOTO -1
Replies: 7
Views: 560

Re: GOTO -1

10 x%=20
20 PRINT"Test""
30 GOTO x%

This works fine *provided* you have line numbers. If you do not - which is the default with BB4W - you get a "No such line no." error. I should imagine that GOTO 20 would produce the same error.
by KenDown
Sun 10 Nov 2019, 21:19
Forum: Suggestion Box
Topic: FOR lists
Replies: 26
Views: 1257

Re: FOR lists

And, I regret to say, I will be away all day tomorrow. I hope David can step in and take up the slack, so to speak.
by KenDown
Sun 10 Nov 2019, 16:26
Forum: Suggestion Box
Topic: FOR lists
Replies: 26
Views: 1257

Re: FOR lists

Oh, I think that "you (Richard) are right and I (Ken Down) am wrong" is probably very common knowledge! :-) I'm just putting forward ideas. You are undoubtedly correct in stating that the idea of compatibility modes is totally impractical. Mind you, I didn't have in mind emulating every previous ver...
by KenDown
Sun 10 Nov 2019, 12:24
Forum: Suggestion Box
Topic: FOR lists
Replies: 26
Views: 1257

Re: FOR lists

Oh gosh! I've once or twice considered learning Python - my grandsons have dabbled in it at school - but that example has put me right off! Far far far too complicated!