Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] VID: layout problem

From: robert:muench:robertmuench at: 17-Oct-2002 17:38

Hi, I need some VID guru help for the following problem/questions: 1. As I understand VID field-layout: [ lab "surname" surname: fld return lab "lastname" lastname: fld return ... ] Executing <layout field-layout> anywhere in my script will create two global words 'surname and 'lastname referencing field objects. Is this right? 2. My problem is that I dynamically create a block like field-layout in a function and execute the layout command in this function too. I'm using code like repend field-layout [to-set-path field 'fld 'return] To get the variables into the block. I'm using to-set-path and not to-set-word because field can be a path too. That's the result I get: ** Script Error: surname has no value ** Where: do-facets ** Near: surname: Hmm... Of course has 'surname no value. I expect the layout function to assign a value to it and add it to the global context. If I change to-set-path to-set-word everything works fine. Is there anything I'm missing? Robert