ArtSup::SetFieldVal (Interface: ArtSup)
 
Sets the value of a field.
 
void SetFieldVal (
    enum eArtSupFld eFieldID,
    VARIANT vFieldValue
)
 
Parameters
eFieldID
[in] Identifier of the field, e.g. asufSysNum (C++) or eArtSupFld.asufSysNum (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
CreateArtSup
GetFieldVal
GetFieldStr
GetFieldID
 
Samples
 
C++
 
// Set the value of the purchase info to 'Purchase info'
pArtSup->SetFieldVal (asufPurchInfo, "Purchase info");

C#
 
// Set the value of the purchase info to 'Purchase info'
oArtSup.SetFieldVal (eArtSupFld.asufPurchInfo, "Purchase info");

VBS
 
' Set the value of the purchase info to 'Purchase info'
Call oArtSup.SetFieldVal(oArtSup.GetFieldID("PurchInfo"), "Purchase info")

VB.NET
 
' Set the value of the purchase info to 'Purchase info'
oArtSup.SetFieldVal(eArtSupFld.asufPurchInfo, "Purchase info")