Rebol Talk Forum  |  REBOL Discussions  |  REBOL View  |  Topic: Loading a 'view' text-list with a 'block' of data .....
Pages: [1] Print
Author Topic: Loading a 'view' text-list with a 'block' of data .....  (Read 647 times)
jfdutcher
Jr. Member
**
Offline Offline

Posts: 95


View Profile
Loading a 'view' text-list with a 'block' of data .....
« on: March 01, 2007, 08:39:01 PM »

The code below works just as it appears to until it reaches the attempt to load the text-list. The commented 'probe' of utildb/2/7 will display exactly the block content expected....but down at the attempt to populate the 'text-list'....nothing happens and the text-list displays 'empty' Huh

Rebol[Title: "displayResident.r"]

resident: system/script/args

vetsdb: load %/c/vetssrc/dietsys/rebdsysmst.txt
resdb: find vetsdb resident
utildb: find vetsdb "0000"
;probe utildb/2/7
;halt

view layout [
    backcolor silver
   h1 "Dietsys for the New York State Vets' Home"
   h2 "View and/or Change any Resident values - Press APPLY to make changes permanent"
   across
   style labels label maroon font-size 14
   labels "Registration #: " across text resident labels "Last Name: " field resdb/2/2
   labels "First Name: " field resdb/2/3 labels "MInit: " field 20 resdb/2/4
   return
   labels "Doctor Assigned: " text-list utildb/2/7
   return
   button 150x50 "Submit Request"
]   

Logged
jfdutcher
Jr. Member
**
Offline Offline

Posts: 95


View Profile
Re: Loading a 'view' text-list with a 'block' of data .....
« Reply #1 on: March 05, 2007, 06:49:02 PM »

The answer to this (more than obvious in the tutorial I must say myself) is to insert the phrase 'data load' in front of the utildb/2/7 thus giving:

labels "Doctor Assigned: " text-list data load utildb/2/7
Logged
Pages: [1] Print 
Rebol Talk Forum  |  REBOL Discussions  |  REBOL View  |  Topic: Loading a 'view' text-list with a 'block' of data .....
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 09:34:23 AM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2311 Posts in 595 Topics by 4145 Members
Latest Member: Domiadito

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

RT design by Defiant Pc