Rebol Programming/clear-face

From Wikibooks, open books for an open world
< Rebol Programming
Jump to navigation Jump to search

USAGE:[edit | edit source]

CLEAR-FACE face /no-show 

DESCRIPTION:[edit | edit source]

Clears the primary value of a face.

CLEAR-FACE is a function value.

ARGUMENTS[edit | edit source]

  • face -- (Type: any)

REFINEMENTS[edit | edit source]

  • /no-show -- Do not show change yet

SOURCE CODE[edit | edit source]

clear-face: func [
    "Clears the primary value of a face." 
    /no-show "Do not show change yet" 
    /local access
    if all [
        access: get in face 'access 
        in access 'clear-face*
    ] [
        access/clear-face* face
    if not no-show [show face]