articles/dicorebol-fr/unprotect.txt · Dernière modification: 07/05/2005 00:23

EN: rebol.com - rebol.org - rebol.net -
FR: Rebol Documentation Project - forum RebelBB - rebol-france.org - forum codeur -

 

Unprotect - Détail de la fonction

En résumé :

Déprotège un mot ou un bloc de mots.

Utilisation :

unprotect value

Arguments :

value - La valeur en argument. (type: word! block!)

Description :

Déverrouille un mot verrouillé par PROTECT afin que sa valeur puisse être modifiée.

    test: "Je suis protégé, personne ne peut me modifier!"
    protect 'test
    if error? try [test: "Essaye de changer test..."] [
        print "N'a pas pu changer test!"
    ]
    N'a pas pu changer test!
    unprotect 'test
    either error? try [test: "Essaye de changer test..."] [
        print "N'a pas pu changer test!"
    ][
        print "Mot test changé"
    ]
    Mot test changé

Fonctions en relation :

protect - Protège un mot ou un bloc de mots pour empêcher sa modification.

Version anglaise officielle :

 
  articles/dicorebol-fr/unprotect.txt · Dernière modification: 07/05/2005 00:23
 
Fil RSS: Recent changes RSS feed
Valid XHTML 1.0 Valid CSS Powered by PHP Driven by DokuWiki
Hébergement par Spinodo