AddFormFieldChoiceSub
Champs de formulaire
Description
Semblable à la fonction AddFormFieldSub, mais permet de définir la valeur d'exportation et la valeur d'affichage d'un élément de champ de choix
La fonction renvoie un Index temporaire de champ de formulaire utilisable avec
Fonctions SetFormFieldBounds, SetFormFieldCheckStyle et autres
Syntaxe
Delphi
Function TPDFlib.AddFormFieldChoiceSub(Index: Integer; Const SubName, DisplayName: WideString): Integer;
ActiveX
Function PDFlib::AddFormFieldChoiceSub(Index As Long, SubName As String, DisplayName As String) As Long
DLL
int DLAddFormFieldChoiceSub(int InstanceID, int Index, const wchar_t * SubName, const wchar_t * DisplayName);
Paramètres
| Index | Indice du champ de formulaire à traiter. Le premier champ de formulaire a l'indice 1. Le champ de formulaire doit être un champ de choix |
|---|---|
| SubName | Valeur d'exportation du nouveau sous-champ. La valeur du champ peut être définie sur ce nom avec SetFormFieldValue Nom d'affichage du nouveau sous-champ |
| DisplayName |
Valeurs de retour
| 0 | Le sous-champ n'a pas été ajouté Le champ de formulaire spécifié n'était peut-être pas un champ de choix |
|---|---|
| Non-zero | Index de champ temporaire |