Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: layout binding problems
Pages: [1] Print
Author Topic: layout binding problems  (Read 270 times)
ale8670
Newbie
*
Offline Offline

Posts: 1


View Profile
layout binding problems
« on: June 03, 2005, 09:19:58 AM »

Hi all,

I'm a newbe, and I'm making some tests (to better understand this wonderful language).

I have a problem:

I wrote:

layA: [b: box]
view layout layA

It functions correctly.

So I tried to write (I wish to create a layout at runtime):

layA: "b: box"
layB: to-block layA
view layout layB

But I obtained this error:

** Script Error: b word has no context
** Where: forever
** Near: new/var: bind to-word :var :var

Where is the error? Can you help me?

Thank you!


 
Logged
CarlRead
Full Member
***
Offline Offline

Posts: 105


View Profile
layout binding problems
« Reply #1 on: June 03, 2005, 11:44:14 PM »

Context is not my strong point, but if you replace TO-BLOCK with LOAD the error should go away.

Logged

- Carl Read
Pages: [1] Print 
Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: layout binding problems
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 07, 2008, 01:37:53 AM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2240 Posts in 584 Topics by 2210 Members
Latest Member: Wqmsewzb

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

RT design by Defiant Pc