ArtLoc::SetFieldVal (Interface: ArtLoc)
 
Sets the value of a field.
 
void SetFieldVal (
    enum eArtLocFld eFieldID,
    VARIANT vFieldValue
)
 
Parameters
eFieldID
[in] Identifier of the field, e.g. alofSysNum (C++) or eArtLocFld.alofSysNum (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
CreateArtLoc
GetFieldVal
GetFieldStr
GetFieldID
 
Samples
 
C++
 
// Set the value of the priority to 7
pArtLoc->SetFieldVal (alofPriority, 7);

C#
 
// Set the value of the priority to 7
oArtLoc.SetFieldVal (eArtLocFld.alofPriority, 7);

VBS
 
' Set the value of the priority to 7
Call oArtLoc.SetFieldVal(oArtLoc.GetFieldID("Priority"), 7)

VB.NET
 
' Set the value of the priority to 7
oArtLoc.SetFieldVal(eArtLocFld.alofPriority, 7)