Spplm::SetFieldVal (Interface: Spplm)
 
Sets the value of a field.
 
void SetFieldVal (
    enum eSpplmFld eFieldID,
    VARIANT vFieldValue
)
 
Parameters
eFieldID
[in] Identifier of the field, e.g. splfSysNum (C++) or eSpplmFld.splfSysNum (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
CreateSpplm
GetFieldVal
GetFieldStr
GetFieldID
 
Samples
 
C++
 
// Set the value of the sales ledger account to '74954'
pSpplm->SetFieldVal (splfAccountSls, "74954");

C#
 
// Set the value of the sales ledger account to '74954'
oSpplm.SetFieldVal (eSpplmFld.splfAccountSls, "74954");

VBS
 
' Set the value of the sales ledger account to '74954'
Call oSpplm.SetFieldVal(oSpplm.GetFieldID("AccountSls"), "74954")

VB.NET
 
' Set the value of the sales ledger account to '74954'
oSpplm.SetFieldVal(eSpplmFld.splfAccountSls, "74954")