4D v16.3OBJECT Get action |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16.3
OBJECT Get action
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| OBJECT Get action ( {* ;} objet ) -> Résultat | ||||||||
| Paramètre | Type | Description | ||||||
| * | Opérateur |
|
Si spécifié, objet est un nom d'objet (chaîne) Si omis, objet est un champ ou une variable | |||||
| objet | Objet de formulaire |
|
Nom d'objet (si * est spécifié) ou Champ ou variable (si * est omis) | |||||
| Résultat | Texte |
|
Action standard associée | |||||
La commande OBJECT Get action retourne le code de l’action standard associée à l’objet ou aux objets désigné(s) par les paramètres objet et *.
L’action standard d’un objet peut avoir été définie en mode Développement via la Liste des propriétés (cf. section Actions standard dans le manuel Mode Développement) ou à l’aide de la commande OBJECT SET ACTION.
La commande retourne une chaîne contenant le code de l’action associée à l’objet. Vous pouvez comparer la valeur reçue aux constantes du thème "Valeurs Texte pour Action standard associée" :
| Constante | Type | Valeur |
| Object Accept action | Chaîne | 2 |
| Object Add subrecord action | Chaîne | 14 |
| Object Automatic splitter action | Chaîne | 16 |
| Object Cancel action | Chaîne | 1 |
| Object Clear action | Chaîne | 21 |
| Object Copy action | Chaîne | 19 |
| Object Cut action | Chaîne | 18 |
| Object Database Settings action | Chaîne | 32 |
| Object Delete record action | Chaîne | 7 |
| Object Delete subrecord action | Chaîne | 13 |
| Object Edit subrecord action | Chaîne | 12 |
| Object First page action | Chaîne | 10 |
| Object First record action | Chaîne | 5 |
| Object Goto page action | Chaîne | 15 |
| Object Last page action | Chaîne | 11 |
| Object Last record action | Chaîne | 6 |
| Object MSC action | Chaîne | 36 |
| Object Next page action | Chaîne | 8 |
| Object Next record action | Chaîne | 3 |
| Object No standard action | Chaîne | 0 |
| Object Open back URL action | Chaîne | 37 |
| Object Open next URL action | Chaîne | 38 |
| Object Paste action | Chaîne | 20 |
| Object Previous page action | Chaîne | 9 |
| Object Previous record action | Chaîne | 4 |
| Object Quit action | Chaîne | 27 |
| Object Redo action | Chaîne | 31 |
| Object Refresh current URL action | Chaîne | 39 |
| Object Return to Design mode action | Chaîne | 35 |
| Object Select all action | Chaîne | 22 |
| Object Show Clipboard action | Chaîne | 23 |
| Object Stop loading URL action | Chaîne | 40 |
| Object Test Application action | Chaîne | 26 |
| Object Undo action | Chaîne | 17 |
Vous souhaitez associer l’action "Annuler" à tous les objets sans action du formulaire :
ARRAY TEXT($tabObj;0)
FORM GET OBJECTS($tabObj)
For($i;1;Size of array($tabObj))
If(OBJECT Get action(*;$tabObj{$i})=Object No standard action)
OBJECT SET ACTION(*;$tabObj{$i};Object Cancel action)
End if
End for
Produit : 4D
Thème : Objets (Formulaires)
Numéro :
1260
Créé : 4D v14
4D - Langage ( 4D v16)
4D - Langage ( 4D v16.1)
4D - Langage ( 4D v16.2)
4D - Langage ( 4D v16.3)
Ajouter un commentaire