|
Sets the value of a field. |
|
|
void SetFieldVal ( enum eProjectFld eFieldID, VARIANT vFieldValue ) |
|
|
Parameters | eFieldID | [in] Identifier of the field, e.g. pjhfSysNum (C++) or eProjectFld.pjhfSysNum (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 project subject to 'Mailing january'
pProject->SetFieldVal (pjhfSubject, "Mailing january");
|
|
|
C# |
|
// Set the value of the project subject to 'Mailing january'
oProject.SetFieldVal (eProjectFld.pjhfSubject, "Mailing january");
|
|
|
VBS |
|
' Set the value of the project subject to 'Mailing january'
Call oProject.SetFieldVal(oProject.GetFieldID("Subject"), "Mailing january")
|
|
|
VB.NET |
|
' Set the value of the project subject to 'Mailing january'
oProject.SetFieldVal(eProjectFld.pjhfSubject, "Mailing january")
|
|