05-08-2024, 08:46 PM
(This post was last modified: 05-08-2024, 08:49 PM by digitalmouse.)
(05-08-2024, 08:28 PM)SMcNeill Wrote: Note that only *some* of the control characters are possible to be used in the IDE, as some are used for formatting and such.Thanks for the info.
CHR$(13), for instance, is a CRLF character and denotes the end of a line in the IDE. It can't be BOTH a musical note (I think 13 is the musical note?) and a CRLF character. TAB counts as a tabbed space, so it can't represent the diamond symbol. There may be a few others reserved, but I'm not 100% certain what they are off the top of my head.
To use these characters inside the IDE, it's generally advised to use CHR$(value) for whichever of the ASCII control codes you want to deal with.
To manuually insert them (if they work and aren't reserved and perform some IDE function), you can try to use ALT-num_code to type them into the IDE. For example, to add the female sex symbol (CHR$(12)), hold down ALT, and with it held, press 1 then press 2. ALT - 1 - 2... Release ALT and the symbol should appear.
NOTE: Just because the IDE may accept the character, doesn't mean you're out of the woods with issues yet. Saving/Loading may convert some control characters (like tab to spaces) that the IDE would otherwise handle just fine.
It's really not a good idea to use ASCII codes from 0 to 31 directly inside the IDE. It's much better to use CHR$(num) instead. You were warned here first.
The point was to take a compressed 5-line game "5 line engine' published in the games section of the forum that is strung together with : separators and 'decompress' it by globally doing a search-n-replace of the : with a Carriage Return character in 'Change...' dialog box. So that I don't have to manually replace 50+ matches by hand. Computers should do that, not me!