varislock

Vérifie si une variable est verrouillée.

📝 Syntaxe

  • state = varislock(scope, variable_name)

📥 Argument d'entrée

  • scope - une chaîne : 'global', 'base', 'caller', 'local'.

  • variable_name - une chaîne : nom de la variable.

📄 Description

varislock renvoie vrai si variable_name a été déclarée comme variable verrouillée, et faux sinon.

💡 Exemple

y = 3;
varislock('local', 'y')
varlock('local', 'y')
varislock('local', 'y')
y = 4
varunlock('local', 'y')
varislock('local', 'y')
y = 4

🔗 Voir aussi

varlock, varunlock.

🕔 Historique

Version
📄 Description

1.0.0

version initiale

Last updated

Was this helpful?