Why is TextWindow (GraphicsWindow) .Title an error in web IDE

StephenDx 51 Reputation points
2020-10-14T05:05:06.487+00:00

Note: this is a curiosity question rather than flaming.

If GraphicsWindow.Title and 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!"   
TextWindow.WriteLine("Hello, World!")  

I can see that the highlighted Object.Property does advise that it is not available:
32214-textwindow-title-error-20201014.png
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 .

Thanks,

Small BASIC
Small BASIC
A programming language created by Microsoft that serves a stepping stone for beginners from block-based coding languages to more complex text-based languages.
280 questions
{count} votes

Accepted answer
  1. Nonki Takahashi 676 Reputation points
    2020-10-17T02:08:27.507+00:00

    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.

    2 people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. StephenDx 51 Reputation points
    2020-10-15T22:45:18.677+00:00

    It appears that the answer is that desktop and web versions are not currently compatible.

    This means that if you want to create a program to work on both, you will have to develop each one independently. Copying some code between the IDE's will work as long as the unimplemented properties are not copied into web. An alternative method of performing that part would be required.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.