NewChildFormFieldA
Form fields
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to NewChildFormField and string arguments are interpreted using the current SetAnsiMode code page
Adds a new form field to the selected page as a child of another field.
Syntax
Delphi
Function DLNewChildFormFieldA(InstanceID, Index: Integer; Title: PAnsiChar; FieldType: Integer): Integer;
DLL
int DLNewChildFormFieldA(int InstanceID, int Index, const char * Title, int FieldType);
Parameters
| Index | The index of the parent field. The title of the new form field. The title cannot contain the period "." character. |
|---|---|
| Title | |
| FieldType | The type of the field to create: 1 = Text 2 = Pushbutton 3 = Checkbox 4 = Radiobutton 5 = Choice 6 = Signature 7 = Parent |
Return values
| 0 | The new form field could not be created |
|---|---|
| Non-zero | The form field was created successfully, and this is the index of the new field |