Book::SetFieldVal (Interface: Book)
 
Sets the value of a field.
 
void SetFieldVal (
    enum eBookFld eFieldID,
    VARIANT vFieldValue
)
 
Parameters
eFieldID
[in] Identifier of the field, e.g. boofSysNum (C++) or eBookFld.boofSysNum (C# / VB.NET).
 
Remark: In VBS, this field identifier enumerations cannot be used! You should use GetFieldID to get a valid field identifier.
vFieldValue
[in] A VARIANT containing the value you want to give the requested field.
 
See Also
CreateBook
GetFieldVal
GetFieldStr
GetFieldID
 
Samples
 
C++
 
// Set the value of admitted for invoice to true
pBook->SetFieldVal (boofUseInvoice, VARIANT_TRUE);

C#
 
// Set the value of admitted for invoice to true
oBook.SetFieldVal (eBookFld.boofUseInvoice, true);

VBS
 
' Set the value of admitted for invoice to true
Call oBook.SetFieldVal(oBook.GetFieldID("UseInvoice"), True)

VB.NET
 
' Set the value of admitted for invoice to true
oBook.SetFieldVal(eBookFld.boofUseInvoice, True)