[Pharo-users] What's wrong whith this code?

Friedrich Dominicus frido at q-software-solutions.de
Wed Mar 19 03:17:34 EDT 2014


Bernat Romagosa <tibabenfortlapalanca at gmail.com> writes:

> ouch, I added a . in the middle, sorry!
>
> elements := #('eins' 'zwei' 'drei' 'vier').
> elements
> do: [ :element | (Delay forSeconds: 2) wait ]
> displayingProgress: [ :element | 'Working on', element asString ].
>
> 2014-03-18 9:55 GMT+01:00 Bernat Romagosa
> <tibabenfortlapalanca at gmail.com>:
>
>     Without having tried it, I think you're missing a #wait message in
>     there:
>     
>     
>     
>     elements := #('eins' 'zwei' 'drei' 'vier').
>     elements do: [ :element | (Delay forSeconds: 2) wait ].
>     
>     displayingProgress: [ :element | 'Working on', element asString ].
Sorry even with that I do not see the 'Working on ' message.
It's just a progress bar with nothing else. No "Working on" anywhere.

Regards
Friedrich




More information about the Pharo-users mailing list