Rebol Talk Forum  |  REBOL Discussions  |  REBOL View  |  Topic: Newbie: clear-fields
Pages: [1] Print
Author Topic: Newbie: clear-fields  (Read 462 times)
Kai
Newbie
*
Offline Offline

Posts: 1


View Profile
Newbie: clear-fields
« on: July 31, 2007, 03:11:16 PM »

Hi ~

the help for clear-fields states that it expects a panel parameter. All the View docs that I have perused thus far, are VERY sparse on panels.

How do I use panels?
What do I feed clear-fields when I don't employ panels? Is that even possible?

TIA,
Kai
Logged
henrikmk
Newbie
*
Offline Offline

Posts: 49


View Profile
Re: Newbie: clear-fields
« Reply #1 on: August 01, 2007, 09:46:47 AM »

CLEAR-FIELDS simply clears all fields in a panel. A panel is a grouped set of faces used in LAYOUT:

view layout [
  form: panel [
    field "eenie"
    field "miney"
    field "moe"
  ]
]


Now press escape in the console window to get a prompt.

Type:

clear-fields form

This should clear all fields in the panel.

A panel is a block of faces stored inside a face. For the above layout, you'd find the form elements to be stored inside form/pane in a block.

Typing:

source clear-fields

reveals how to "travel" along such a pane to clear each individual field.
Logged
kpeters
Newbie
*
Offline Offline

Posts: 24


View Profile
Re: Newbie: clear-fields
« Reply #2 on: August 01, 2007, 06:29:10 PM »

Henrik ~

thanks for your exhaustive explanation - much appreciated.

Kai
Logged
Pages: [1] Print 
Rebol Talk Forum  |  REBOL Discussions  |  REBOL View  |  Topic: Newbie: clear-fields
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 30, 2008, 06:39:43 PM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2243 Posts in 587 Topics by 2010 Members
Latest Member: techpon

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

RT design by Defiant Pc