LoginLogin

VERY bizarre behavior regarding filename DIALOG caption string and % symbol

Root / SmileBASIC Bug Reports / [.]

snail_Created:
Sorry for long title, and I'm not quite sure if this is a bug or some kind of weird feature. I have no idea what this is. When setting up a DIALOG for inputting a filename (the one DIALOG with the keyboard), using the % creates some...strange behavior. These will always return the same results every time, but the actual result of this behavior is inconsistent. In most cases, the % will just disappear from the caption string. In others, the % and the character immediately after it will disappear. Sometimes, putting 2 % next to eachother will cause a % ti appear in the text string. I'm just not sure what to think of it. Take this test code and examine the caption string on the dialog:
VAR$=DIALOG("","TEST%%_TEST%_TEST%")
If someone could perform further tests and try to explain this, that would be great. I certainly can't understand it.

Interesting. I am not finished investigating, but it is worth pointing out that
A$=DIALOG("","%"+CHR$(279))
will crash the 3DS, resetting it. EDIT: Some more values that cause crashes: 285, 298, 311, 324, 337, 350 (at this point I stopped testing numbers in steps of 13), 473, 474, 475 (and I have stopped testing altogether here).

oh it looks like you've discovered formatting codes... or not