Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: text-list form now ?question?
Pages: [1] Print
Author Topic: text-list form now ?question?  (Read 380 times)
leke
Jr. Member
**
Offline Offline

Posts: 92


View Profile WWW
text-list form now ?question?
« on: April 26, 2004, 04:46:26 AM »

Hey,
I have just started learning Rebol and was messing with this...

   do [print ["Today’s Date is" now/date "and the time is" now/time ]]

Which works fine.

But then I tried to get 'now/date' and 'now/time' (same as above) in a text-list box on the same line and couldn't get it working right.
Here's what I managed...

rebol []

view center-face layout [
   backcolor silver
      text-list 250x250 form now/date
]

Maybe I shouldn't be jumping into graphics just yet but curiosity got the better of me.
Thanks.

 
Logged

CarlRead
Full Member
***
Offline Offline

Posts: 105


View Profile
text-list form now ?question?
« Reply #1 on: April 26, 2004, 05:26:46 AM »

Try this...
Code:
REBOL []
view center-face layout [
   backcolor silver
   text-list 300x250 reform [
       "Today's Date is" now/date
       "and the time is" now/time
   ]
]
REFORM does a REDUCE of the block's contents then a FORM on the block.
Logged

- Carl Read
leke
Jr. Member
**
Offline Offline

Posts: 92


View Profile WWW
text-list form now ?question?
« Reply #2 on: April 28, 2004, 01:19:50 AM »

Thanks Carl.
Logged

Pages: [1] Print 
Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: text-list form now ?question?
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 21, 2008, 09:12:01 PM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2295 Posts in 593 Topics by 3763 Members
Latest Member: svolika

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc