Discussion:
help point 1
camilo hurtado velasquez
2012-05-06 21:51:59 UTC
Permalink
me falta el final profavor necesito ayuda helpme pelase

declare
P S
{Browse S}
P={NewPort S}

proc {Cliente1}
for I in [a c]
do {Send P I} {Delay 500}
end
end

proc {Cliente2}
for J in [b c]
do {Send P J} {Delay 500}
end
end

proc {Cliente3}
for K in [a]
do {Send P K} {Delay 500}
end
end


thread {Cliente1} end
thread {Cliente2} end
thread {Cliente3} end
Subject: mozart-users Digest, Vol 66, Issue 6
Date: Sat, 5 May 2012 12:00:04 +0200
Send mozart-users mailing list submissions to
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.gforge.info.ucl.ac.be/mailman/listinfo/mozart-users
or, via email, send a message with subject or body 'help' to
You can reach the person managing the list at
When replying, please edit your Subject line so it is more specific
than "Re: Contents of mozart-users digest..."
1. Re: QTk Widgets (Khadija EL MAHRSI)
----------------------------------------------------------------------
Message: 1
Date: Fri, 4 May 2012 19:52:47 +0200
Subject: Re: QTk Widgets
Content-Type: text/plain; charset="iso-8859-1"
Sorry, you were right it's just that when I tried "Application" before, I
missed the message that said true because there were so many other tests.
Thanks.
I tried both and none of them worked.
'Application' is not a string, it's an atom. "Application" is a string.
Sébastien
On Fri, May 4, 2012 at 6:59 PM, Khadija EL MAHRSI <
The called procedure compares Var to some string ('Application' for
example) and even if Var really does contain 'Application', the result is
always "false".
It's up to the called procedure to use it in a way that is string-like.
It's like in C with the 'char' type: it's used both for small integers
and for characters. The interpretation is a consequence of the operations
applied.
Sébastien
On Fri, May 4, 2012 at 6:27 PM, Khadija EL MAHRSI <
What if I wanted to use the content of Var as an argument?
Use {System.showInfo Var} instead.
Sébastien
On Fri, May 4, 2012 at 6:21 PM, Khadija EL MAHRSI <
Hello,
Yes, I've figured that much and I remember running into this problem
before but I can't remember if I was able to display the string in letters
not the ASCII codes or not. Because when I use {System.show Var}, I get the
list of ASCII codes while the result I need is for the string in letters to
be displayed.
Thanks.
Hi,
In Oz, a String *is* a list of numbers (the ASCII codes of the
characters in the string). It's only the way you use it that determines if
it is considered as a string or as a list of numbers.
Cheers,
Sébastien
On Fri, May 4, 2012 at 5:23 PM, Khadija EL MAHRSI <
Hi,
I'm having another problem with the Dropdownlist. The value
{List.nth {D get($)} {D get(firstselection:$)}}
is a list of numbers (which I suppose represents the selected
virtual string from the list).
When combined with {L set(...)} the value displayed is really the
Var := {List.nth {D get($)} {D get(firstselection:$)}}
I get the list of numbers instead of the string itself in Var. Any
help?
Thanks.
Dear Khadija,
Great you solved it. Indeed, the graphics in this documentation
are very distorted.
Best wishes,
Torsten
Hi,
Thank you for trying to help. I managed to solve the problem
which was caused by a silly mistake actually. When I was about to put the
part of the code which caused the problem, I noticed that I somehow missed
the handle part in the dropdownlistbox when I copied the code into my
application (maybe due to the weird way the web page was displayed) which
is why it didn't work. My mistake.
Dear Khadija,
I have not used QTk for years, so I don't remember any of
theses things I must say.
Anyway, I wrote some application once that uses the Listbox
widget, and that is still working fine under Mozart 1.4.0 (just checked).
Also, if I remember correctly the Prototyper application uses this widget
-- so you could check its source out as an example.
http://www.mozart-oz.org/documentation/mozart-stdlib/wp/qtk/html/node2.html#chapter.prototyper
So, for any more specific help I am afraid you need to send us
some code demonstrating your problem :)
Best wishes,
Torsten
--
Dr Torsten Anders
Course Leader, Music Technology
University of Bedfordshire
Park Square, Room A315
http://www.torsten-anders.de
Hello,
I was experimenting with QTk and wanted to use the
Dropdownlistbox. First of all, the documentation page is weirdly displayed
compared to the other widgets and secondly (and more importantly), it's not
working. The part where the label is supposed to display the selected value
from the list is not working. I've tried making the label display any given
string instead and it worked.
I've also tried the Listbox widget and noticed that the items
disappear when selected. Is this normal?
Isn't there a way to have something close to the traditional
List box or Drop-down list box?
Thanks.
_________________________________________________________________________________
mozart-users mailing list
http://www.mozart-oz.org/mailman/listinfo/mozart-users
_________________________________________________________________________________
mozart-users mailing list
http://www.mozart-oz.org/mailman/listinfo/mozart-users
_________________________________________________________________________________
mozart-users mailing list
http://www.mozart-oz.org/mailman/listinfo/mozart-users
_________________________________________________________________________________
mozart-users mailing list
http://www.mozart-oz.org/mailman/listinfo/mozart-users
_________________________________________________________________________________
mozart-users mailing list
http://www.mozart-oz.org/mailman/listinfo/mozart-users
_________________________________________________________________________________
mozart-users mailing list
http://www.mozart-oz.org/mailman/listinfo/mozart-users
_________________________________________________________________________________
mozart-users mailing list
http://www.mozart-oz.org/mailman/listinfo/mozart-users
_________________________________________________________________________________
mozart-users mailing list
http://www.mozart-oz.org/mailman/listinfo/mozart-users
_________________________________________________________________________________
mozart-users mailing list
http://www.mozart-oz.org/mailman/listinfo/mozart-users
_________________________________________________________________________________
mozart-users mailing list
http://www.mozart-oz.org/mailman/listinfo/mozart-users
_________________________________________________________________________________
mozart-users mailing list
http://www.mozart-oz.org/mailman/listinfo/mozart-users
_________________________________________________________________________________
mozart-users mailing list
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/20120504/621e2fbe/attachment-0001.html
------------------------------
_______________________________________________
mozart-users mailing list
http://lists.gforge.info.ucl.ac.be/mailman/listinfo/mozart-users
End of mozart-users Digest, Vol 66, Issue 6
*******************************************
Gustavo Gutierrez
2012-05-07 00:57:47 UTC
Permalink
Hello Camilo,

In the mozart mailing list we do not solve homework/assignements questions.
If you have a precise question you are welcome to ask.

Best regards,
Gustavo
Post by camilo hurtado velasquez
me falta el final profavor necesito ayuda helpme pelase
declare
P S
{Browse S}
P={NewPort S}
proc {Cliente1}
for I in [a c]
do {Send P I} {Delay 500}
end
end
proc {Cliente2}
for J in [b c]
do {Send P J} {Delay 500}
end
end
proc {Cliente3}
for K in [a]
do {Send P K} {Delay 500}
end
end
thread {Cliente1} end
thread {Cliente2} end
thread {Cliente3} end
Loading...