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

Bernat Romagosa tibabenfortlapalanca at gmail.com
Tue Mar 18 04:56:07 EDT 2014


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 ].
>
> Cheers,
> Bernat.
>
>
> 2014-03-18 9:52 GMT+01:00 Friedrich Dominicus <
> frido at q-software-solutions.de>:
>
> elements := #('eins' 'zwei' 'drei' 'vier').
>> elements do: [ :element | Delay forSeconds: 2.  ]
>> displayingProgress: [ :element | 'Working on', element asString ].
>>
>> Shouldn't it just open a progress bar and iterate through the elements
>> printing 'Working on...?
>>
>> Regards
>> Friedrich
>>
>>
>
>
> --
> Bernat Romagosa.
>



-- 
Bernat Romagosa.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-users_lists.pharo.org/attachments/20140318/3c2592fe/attachment.html>


More information about the Pharo-users mailing list