GetFormFieldKidTempIndex
Form fields
Description
Returns a temporary index for the item fields (kids) of a radio button or checkbox form field group. An index of 1 will select the first radio or checkbox in the group, 2 the second and so on
The number of kids can be determined by calling GetFormFieldKidCount. This temporary index can be used with the regular form field functions such as GetFormFieldTabOrder and GetFormFieldValue
If you need to update the subname for a choice field then you should use
SetFormFieldSubChoice instead
Syntax
Delphi
Function TPDFlib.GetFormFieldKidTempIndex(Index, KidIndex: Integer): Integer;
ActiveX
Function PDFlib::GetFormFieldKidTempIndex(Index As Long, SubIndex As Long) As Long
DLL
int DLGetFormFieldKidTempIndex(int InstanceID, int Index, int SubIndex);
Parameters
| Index | The index of the radio-button form field SubIndex The index of the sub-field. The first sub-field has an index of 1 |
|---|---|
| KidIndex | One-based index of the child item inside the group; the first child has an index of 1 |
Return values
| Packed index | $55000000 plus Index multiplied by 256 plus KidIndex, usable as a temporary field index in the regular form-field functions |
|---|---|
| 0 | The field does not exist, has no kid items, Index falls outside 1 through 65535, or KidIndex falls outside 1 through 255 |