SetFormFieldChoiceSub

Champs de formulaire

Description

Définit les valeurs d'exportation et d'affichage d'un sous-champ de choix existant. Si l'affichage est vide, il prend la même chaîne que l'exportation

La fonction AddFormFieldChoiceSub permet de modifier une entrée de sous-champ dans un champ de formulaire de choix existant

Syntaxe

Delphi

Function TPDFlib.SetFormFieldChoiceSub(Index, SubIndex: Integer; Const SubName, DisplayName: WideString): Integer;

ActiveX

Function PDFlib::SetFormFieldChoiceSub(Index As Long, SubIndex As Long, SubName As String, DisplayName As String) As Long

DLL

int DLSetFormFieldChoiceSub(int InstanceID, int Index, int SubIndex, const wchar_t * SubName, const wchar_t * DisplayName);

Paramètres

IndexIndice du champ de formulaire à choix
SubIndexIndice du sous-champ Le premier sous-champ a l’indice 1
SubNameValeur d’exportation du nouveau sous-champ
DisplayNameValeur d’affichage du nouveau sous-champ

Valeurs de retour

0Le sous-champ n'a pas été ajouté Le champ de formulaire spécifié n'était peut-être pas un champ de choix
1Le champ de formulaire a été mis à jour