kayel wrote:One of the reasons I temporarily convert BASIC files to TEXT files is so that I can write comments without a knob or whistle changing any words that just happen to be BASIC keywords into uppercase. Sometimes knobs and whistles get in the way.
There are better ways to do this (apart from using BasAsm mode).
In StrongED hit cs-Esc to switch to BaseMode and enter your comments there. When done hit cs-Esc again to return to the previous mode.
You may also want to try c-Enter in BASIC mode and see if that is of any use.
kayel wrote:So how does Riscos know which program to use to open the files?
When you double-click a file RISC OS will first send a DataOpen message to all running applications. If an application can handle the filetype then it should claim the message and open the file.
If no application claims the message then RISC OS will look at the system variable [email protected]
_xxx (where xxx is the filetype). If the variable is set then it will execute the commands tied to it. This usually results in an application being started which then opens the file.
The system variables for the various filetypes are set by applications when they are booted, usually when you open the directory they live in. Properly behaved applications will only set a variable when it isn't set already. Setting a RunType variable when it's already set changes the application that will open files with that filetype.
If you alter the filetype manually then that may cause problems. Changing BASIC files to text files means they will no longer be run when double-clicked. Instead they will be opened in a text editor, where they will look strange as the file is still tokenised BASIC. In StrongED BASIC files with the correct filetype are detokenised on loading and retokenised on saving.
Hope that helps.