ArtGrp::SetFieldVal (Interface: ArtGrp)
 
Sets the value of a field.
 
void SetFieldVal (
    enum eArtGrpFld eFieldID,
    VARIANT vFieldValue
)
 
Parameters
eFieldID
[in] Identifier of the field, e.g. agpfSysNum (C++) or eArtGrpFld.agpfSysNum (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
CreateArtGrp
GetFieldVal
GetFieldStr
GetFieldID
 
Samples
 
C++
 
// Set the value of the description to 'Article group 7'
pArtGrp->SetFieldVal (agpfDescription, "Article group 7");

C#
 
// Set the value of the description to 'Article group 7'
oArtGrp.SetFieldVal (eArtGrpFld.agpfDescription, "Article group 7");

VBS
 
' Set the value of the description to 'Article group 7'
Call oArtGrp.SetFieldVal(oArtGrp.GetFieldID("SupNumber"), "Article group 7")

VB.NET
 
' Set the value of the description to 'Article group 7'
oArtGrp.SetFieldVal(eArtGrpFld.agpfDescription, "Article group 7")