Hi everybody,
Please, can you help me with the following problem which occurs in 6.14a and now also in 6.13a.
Yesterday I updated from 6.13a to 6.14a. Before 6.13a was working perfectly. I wrote a small learning program where I experimented a little. However, suddenly, strange character combinations showed up in the source code. Sometimes after running, sometimes after changing a line. They are appearing randomly and unpredictable. There where also times that when pushing "run" the Foxit PhantomPDF application tried to launch. Please, check the code below and see those lines within the red rectangle. Besides of ENDPROC, I did not type anything of the other characters.
I downgraded back from 6.14a to 6.13a but even in 6.13a the behaviour is occurring. Before 6.14.a, I never saw this behaviour.
I am using Windows 10 Home version.
Can you tell me what goes wrong here and how to solve it?
Thank you so much for your help which is appreciated.
Have a nice day!
Chris
Strange BBC4W 6.13a and 6.14a behaviour
-
- Posts: 19
- Joined: Thu 05 Jul 2018, 06:00
Strange BBC4W 6.13a and 6.14a behaviour
You do not have the required permissions to view the files attached to this post.
-
- Posts: 19
- Joined: Thu 05 Jul 2018, 06:00
Re: Strange BBC4W 6.13a and 6.14a behaviour
Hi all,
This morning I tried to open the file in the former post again and I received the error "Invalid File Format". I created this file with the 6.14a version and did the last save in 6.13a. It is probably related to the above-mentioned problem.
Anybody any idea what is going wrong? When I look into the code, I think the problem is related to the "@usr$" line.
Your input will be appreciated.
Chris
This morning I tried to open the file in the former post again and I received the error "Invalid File Format". I created this file with the 6.14a version and did the last save in 6.13a. It is probably related to the above-mentioned problem.
Anybody any idea what is going wrong? When I look into the code, I think the problem is related to the "@usr$" line.
Your input will be appreciated.
Chris
Re: Strange BBC4W 6.13a and 6.14a behaviour
Hi Chris,
OK, I think I've found it: the last character definition in PROC_InitDialogObjects only has 7 parameters after the character to define (254). I think this will leave the system looking for another character to use to define it, which will be whatever character you next send. This probably initiates a chain of problems, which may be why the effects feel random.
If correcting that doesn't solve it, come back again!
Best wishes,
D
OK, I think I've found it: the last character definition in PROC_InitDialogObjects only has 7 parameters after the character to define (254). I think this will leave the system looking for another character to use to define it, which will be whatever character you next send. This probably initiates a chain of problems, which may be why the effects feel random.
If correcting that doesn't solve it, come back again!
Best wishes,
D
Re: Strange BBC4W 6.13a and 6.14a behaviour
As an aside, you can include actual code as text (put it between tags in the text), which makes it easier for anyone else to have a play with it, and debug it.
Best wishes,
D
Code: Select all
and
Best wishes,
D
-
- Posts: 19
- Joined: Thu 05 Jul 2018, 06:00
Re: Strange BBC4W 6.13a and 6.14a behaviour
Hello DDRM,
Thank you so much for your reply and information. After fixing the missing number, everything went fine again.
The code is a screen capture in png format. Because I lost the code because of the invalid file error, I had to convert the PNG to text which was not without errors. Here is the real code which can be copied :
Wish you a very nice day and all the best.
Chris
Thank you so much for your reply and information. After fixing the missing number, everything went fine again.
The code is a screen capture in png format. Because I lost the code because of the invalid file error, I had to convert the PNG to text which was not without errors. Here is the real code which can be copied :
Code: Select all
10 REM *** Just a test to learn BBC Basic
20 MODE 5 REM *** 80 X 32 16 colors
30 COLOUR 2
60 @usr$="E:/"
70 REM *MKDIR /BBCBfiSIC/TRIALS/BOBBY
80 title$ = "Chris The fint"
98 SYS "SetWindowText", @hwnd%, title$
100 REM PRINT @usr$
110 PROC_InitDialogObjects
120 PROC_DrawDialog
130 PRINTTAB(2,2);
190 END
1000 DEFPROC_InitDialogObjects
1009 REM *** Left border
1010 VDU 23,240,230,230,230,230,230,230,230,230
1014 REM *** Top Left corner
1015 VDU 23,241,255,255,255,224,224,231,231,228
1019 REM *** Top border
1020 VDU 23,242,255,255,255,0,0,255,255,0
1024 REM *** Top Right corner
1025 VDU 23,243,255,255,255,7,7,231,231,103
1029 REM *** Right border
1030 VDU 23,244,103,103,103,103,103,103,103,103
1034 REM *** Bottom Right corner
1035 VDU 23,245,103,231,231,7,7,255,255,255
1039 REM *** Bottom border
1040 VDU 23,246,0,255,255,0,0,255,255,255
1044 REM *** Bottom Left border
1045 VDU 23,247,230,231,231,224,224,255,255,255
1049 REM *** Thin Horizontal Middle line
1050 VDU 23,248,0,0,0,255,255,0,0,0
1054 REM *** Thin Horizontal "T" Down Middle line piece
1055 VDU 23,249,0,0,0,255,255,24,24,24
1059 REM *** Thin Horizontal "T" Up Middle line piece
1060 VDU 23,250,24,24,24,255,255,0,0,0
1064 REM *** Thin Cross Middle line piece
1065 VDU 23,251,24,24,24,255,255,24,24,24
1069 REM *** Thin Uertical Middle line
1070 VDU 23,252,24,24,24,24,24,24,24,24
1074 REM *** Thin Uertical "T" Left Middle line piece
1075 VDU 23,253,24,24,24,248,248,24,24,24
1079 REM *** Thin Uertical "T" Right Middle line piece
1080 VDU 23,254,24,24,24,31,31,24,24,24
1190 ENDPROC
1200 DEFPROC_DrawDialog
1201 COLOUR 2
1202 RECTANGLE 1,1,1279,1023
1205 VDU 28,1,1,76,29
1210 PRINTTAB(2,2) "THE QUICK BROWN FOX JUMPS OUER THE FAT AND LAZY DOG. THE QUICK BROWN FOX JUMPS OUER THE FAT AND LAZY DOG."
1290 ENDPROC
Chris