First Splash: Digital Clock problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

First Splash: Digital Clock problem

mchean
the following gives an invalid expression start on the ] before repeat
digitalClockProcess := [[
        Processor sleep: 1000.
        (View desktop canvas)
                font: (Font name: 'Arial' pointSize:36) beBold;
                text: Time now printString at: 10@10;
                free
] repeat] fork


Reply | Threaded
Open this post in threaded view
|

Re: First Splash: Digital Clock problem

Blair McGlashan-4
"mchean" <[hidden email]> wrote in message
news:[hidden email]...
> the following gives an invalid expression start on the ] before repeat
> digitalClockProcess := [[
> Processor sleep: 1000.
> (View desktop canvas)
> font: (Font name: 'Arial' pointSize:36) beBold;
> text: Time now printString at: 10@10;
> free
> ] repeat] fork
>

The important part of the instructions you have missed is:

"There is no need to select single line expressions, just place the text
cursor on the line and press the desired evaluation key sequence. **If the
expression consists of more than one line, select it in the normal way with
the mouse or keyboard before attempting to evaluate it.**"

In other words you need to select all 7 lines here, as otherwise you are
just attempting to evaluate the last line.

Regards

Blair


Reply | Threaded
Open this post in threaded view
|

Re: First Splash: Digital Clock problem

Paul-2
The example worked fine for me, but when I copied the code it added a
blank line between each line of code.