|
Sets the value of a field. |
|
 |
void SetFieldVal ( enum ePstCdFld eFieldID, VARIANT vFieldValue ) |
|
|
Parameters | eFieldID | [in] Identifier of the field, e.g. pstfSysNum (C++) or ePstCdFld.pstfSysNum (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 |
|
|
|
Samples |
|
 |
C++ |
|
// Set the value of the city to 'Brugge'
pPstCd->SetFieldVal (pstfCity, "Brugge");
|
|
 |
C# |
|
// Set the value of the city to 'Brugge'
oPstCd.SetFieldVal (ePstCdFld.pstfCity, "Brugge");
|
|
 |
VBS |
|
' Set the value of the city to 'Brugge'
Call oPstCd.SetFieldVal(oPstCd.GetFieldID("City"), "Brugge")
|
|
 |
VB.NET |
|
' Set the value of the city to 'Brugge'
oPstCd.SetFieldVal(ePstCdFld.pstfCity, "Brugge")
|
|