Hi @StephenDx , GraphicsWindow.Title and TextWindow.Title are not implemented for Small Basic Online. I wrote a little about difference between Small Basic Desktop and Small Basic Online in my blog post. Thanks.
Why is TextWindow (GraphicsWindow) .Title an error in web IDE
Note: this is a curiosity question rather than flaming.
TextWindow.Title are not implemented in the web IDE yet, why is it flagged as an error?
I copied a working program from the desktop IDE to the web IDE and it did not work. The
.Title line had to be modified (or worse, removed) in order for the program to work. This means that when you copy the program back to the desktop IDE, the user has to remember to enable the line (uncomment, re-insert) again.
TextWindow.Title = "Hello, World!"
I can see that the highlighted Object.Property does advise that it is not available:
I would think that the web compiler/interpreter could recognise it as not implemented and ignore it so that the program can be run. When running the program the compiler could have the method listed, but is empty and so does nothing.
I suggest that it would be better to be flagged as a Warning, or better as an Informational with the existing note explaining that it is not implemented and then allow the program to run by ignoring that line .
I don't think we have warnings yet (where you can run the code, but the UI warns you that a particular line of code does nothing, because the legacy desktop code doesn't make sense in the online UI).
@Nonki Takahashi , do you know if we have a GitHub issue for this yet? I'm pretty sure we were talking about a better way to handle this scenario.
Our GitHub issues: https://github.com/sb/smallbasic-editor/issues
Sign in to comment