|
Pages: [1]
|
 |
|
Author
|
Topic: variables in layout (Read 311 times)
|
nebol
Guest
|
The most basic question you'll see in the next 10 years:
I've tried a number of ways to get a simple layout to show the current date and none of them work.
The basic idea I'm trying to get going is this:
view layout [text "today's date is [now/day]"]
I've tried several variations of the above, but none of them work. I'm also wondering how, in general, one gets variables to print in layout (i can get this to work in the console using 'print' quite easily).
I'm really amazed at the simplicity of REBOL, but this is stumping me tho i know the answer is probably extra easy.
Help!
|
|
|
|
|
Logged
|
|
|
|
Guest_Sunanda
Guest
|
view layout [text join "today's date is" now/day]
|
|
|
|
|
Logged
|
|
|
|
Guest_nebol
Guest
|
Many thanks, Sunanda!  That turned the trick quite nicely. Guess I have much more reading to do. Still, it's amazing how much you can get done by just barely skimming thru some stuff. I'm so glad REBOL decided to make the basic stuff free (I've looked at it a few times in the past but got scared off by the pricing at first). This is an amazing scripting language. For prototyping, all that Qt, Tk, blablabla is a real chore compared to this. When o when will View be ported to OS X?!
|
|
|
|
|
Logged
|
|
|
|
Henrik
Guest
|
|
|
|
|
|
Logged
|
|
|
|
|
|
Pages: [1]
|
|
|
 |
News: 01-09-08 Alpha version of REBOL 3 has been released!
2315 Posts in 597 Topics by 4206 Members
Latest Member: amoutbroodo
|