Xojo Conferences
XDCMay2019MiamiUSA
MBSOct2019CologneDE

DynaPDF Manual - Page 365

Previous Page 364   Index   Next Page 366

Function Reference
Page 365 of 766
Example (C++):
// aField is a handle of a combo box in this example; we want to
// deselect the currently selected value, that's all.
char* value, *expValue;
LBOOL selected;
SI32 valCount = pdfGetFieldExpValCount(pdf, aField);
for (SI32 i = 0; i < valCount; i++)
{
if (pdfGetFieldExpValueEx(pdf, aField, i, value, expValue, selected))
{
if (selected)
{
pdfSetFieldExpValue(pdf, aField, i, value, expValue, false);
break;
}
}
}
Remarks:
The parameters Value, ExpValue, and Selected require variables so that the values can be set by the
function. To change a choice value of a combo box or list box call the function SetFieldExpValue().
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: GetFieldExpValueEx

Next topic: GetFieldFlags