Virtual String

Sébastien Doeraene sjrdoeraene at gmail.com
Sat Mar 31 13:25:10 CEST 2012


Hi,

Are you able to browse that feature? Using {Browse} I mean. It could appear
that, for some reason, it does not contain what you think it contains.

Sébastien

On Fri, Mar 30, 2012 at 20:49, Khadija EL MAHRSI <khadija.elmahrsi at gmail.com
> wrote:

> Hello,
> After a number of tests, it became clear that the problem comes indeed
> from the feature which is assigned by the other class. Even though I'm
> pretty sure that this feature is correctly assigned and does contain a
> value, I'm not sure why I can't display it on the screen. Any ideas about
> what could be wrong?
>
> Thanks.
>
>
> 2012/3/29 Khadija EL MAHRSI <khadija.elmahrsi at gmail.com>
>
>> Hi,
>> I've been doing some more tests. The VirtualString works just fine on a
>> virtual string that I assign myself but when I try to do the same thing on
>> a class' feature, it doens't work.
>> For example:
>> Var=self.feat1#1 (Where feat is an feature of a given class)
>> {texHandler set(text:{VirtualString.toString Var})
>> works; however,
>> {texHandler set(text:{VirtualString.toString self.feat2}) with
>> self.feat2=self.feat1#1
>> doesn't work
>>
>> Does the problem have anything to do with the fact that feat2 is assigned
>> by another class?
>>
>> Thanks
>>
>> 2012/3/29 Sébastien Doeraene <sjrdoeraene at gmail.com>
>>
>>> Hi,
>>>
>>> Does this work correctly in the OPI?
>>> {System.showInfo {VirtualString.toString 'hello '#"world"}}
>>>
>>> If no: what's the behavior that you observe?
>>> If yes: can you provide us with a small code snippet that does not work
>>> on your machine, and the behavior that you observe?
>>>
>>> Regards,
>>> Sébastien
>>>
>>>
>>> On Wed, Mar 28, 2012 at 19:17, Khadija EL MAHRSI <
>>> khadija.elmahrsi at gmail.com> wrote:
>>>
>>>> Hi,
>>>> I was working with virtual strings and tried to have the string
>>>> displayed on the screen using {TextHandler set(text:VirtualStr)}; however,
>>>> it didn't work.
>>>> I also tried to convert the virtual string to a string but this seems
>>>> to make things worse: I can't use anything related to VirtualString for
>>>> some reason: VirtualString.is, VirtualString.toString...
>>>> Can someone tell me what's wrong? A normal string is displayed just
>>>> fine; it is the virtual string that is the problem.
>>>>
>>>> Thanks
>>>>
>>>
>>>
>>>
>>> _________________________________________________________________________________
>>> mozart-users mailing list
>>> mozart-users at mozart-oz.org
>>> http://www.mozart-oz.org/mailman/listinfo/mozart-users
>>>
>>
>>
>
>
> _________________________________________________________________________________
> mozart-users mailing list
> mozart-users at mozart-oz.org
> http://www.mozart-oz.org/mailman/listinfo/mozart-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.gforge.info.ucl.ac.be/pipermail/mozart-users/attachments/20120331/4206f797/attachment.html


More information about the mozart-users mailing list