r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[I'm new] Ask any question, and a helpful person will try to answer.

amacleod
15-Feb-2010
[3610]
RebGUI makes it easy to have a profesional looking App but I often 
hit a wall with it when it does not offer some needed functionality 
(like list-view). I often end up using VID again because I can "hack" 
it to what i need.
joannak
17-Apr-2010
[3611]
Hello again.. Been away for some months, still noob :-)
Graham
17-Apr-2010
[3612]
You're only as young as you feel!
Gregg
19-Apr-2010
[3613]
Welcome back. :-)
jonty
16-Jun-2010
[3614x3]
test
oh finally my message went through
Hi there anyway
Maxim
16-Jun-2010
[3617]
howdy  :-)
jonty
16-Jun-2010
[3618x2]
Thx!
Glad someone is monitoring this ... how the heck do you know there 
is a new message in this thread, aaah, group as we should call it?
Maxim
16-Jun-2010
[3620]
the group name turns red, and new messages in a group have the username 
highlighted
jonty
16-Jun-2010
[3621x4]
OK, thanks
Asking a very basic rebol q.
working through the manual trying out stuff.
sometimes very simple things stump me ...
Maxim
16-Jun-2010
[3625]
there are also options (in the little wrench icon in the upper left) 
to play a sound when posts occur and the interface isn't on top
jonty
16-Jun-2010
[3626x2]
the foreach example ...
foreach colour colours [ print colour ]


... it only prints the return of the foreach, which is the last element 
in the block.
why don't I see the 'print colour' appearing in the console?
Maxim
16-Jun-2010
[3628]
it should list every color in your colours block...
jonty
16-Jun-2010
[3629x3]
except it doesn't ... like I said, I only get the last colour printed.
Here is the output:
>> colours: [red blue black green violet]
== [red blue black green violet]
>> foreach colour colours [print colour]
== violet
Thx for tip about setting the sound for new posts etc, BTW.
Maxim
16-Jun-2010
[3632x5]
hum strange... what rebol version are you using?
here is my output from above...
>> colours: [red blue black green violet]
== [red blue black green violet]
>> foreach colour colours [print colour]
red
blue
black
green
violet
start a new rebol console... maybe you stomped on a keyword in your 
tests.  your output is not expected.
remember that rebol has little if any statements, so this means you 
can overwrite just about every control structure in the language. 

maybe you inadvertently overwrote the print function.
(or maybe that was part of an earlier exercise  ;-)
jonty
16-Jun-2010
[3637x5]
oh, ok!
Aha!
You were right.
New rebol session and all is good.
So that's a real catch to look out for!
Pity I've lost all my other set-up now. ... suppose I should start 
writing it in an actual script!
Maxim
16-Jun-2010
[3642x3]
one thing about REBOL is that many things look deceptively simple 
on the surface, but there are many little details which make it a 
pretty deep language.
yeah, I rarely test stuff which doesn't fit on a single line directly 
in the console.
one thing you can do is use the clipboard directly. if you type :

do read clipboard://


it will execute whatever REBOL source code you have in your clipboard 
 :-)
jonty
16-Jun-2010
[3645x2]
OK, now I can start working on my real little problem I was trying 
to do in rebol.

In regards to that, is there a way to format days without resorting 
to 'pick'ing from blocks of day names etc?
Oh neat! (read from clipboard)
Maxim
16-Jun-2010
[3647x3]
using the up arrow, its a quick way to test multiline stuff without 
filling up the history, allowing you to go up just once, and press 
enter.
there might be some more powerfull date formatting code on rebol.org
otherwise, the picking is the way to go.
jonty
16-Jun-2010
[3650]
hmm, doesn't understand clipboard.  Is it a windows only thing?
Maxim
16-Jun-2010
[3651]
not that I know of.  what error did it give you?
jonty
16-Jun-2010
[3652]
>> do read clipboard://
** Access Error: Invalid port spec: clipboard://
** Near: do read clipboard://
Maxim
16-Jun-2010
[3653]
on what OS are you?
jonty
16-Jun-2010
[3654x3]
OSX
Rebol 2.7.6...
(Update fails as well, I know there is a newer v2)
Maxim
16-Jun-2010
[3657x3]
might be that its not working on OSX, there are quite a few OSX REBOLers 
here, one will surely pop up and confirm/infirm
latest version is here... http://www.rebol.com/download-view.html
(of REBOL/view that is)