| |
| Sets the value of a field. |
| |
 |
void SetFieldVal ( enum eLookupFld eFieldID, VARIANT vFieldValue ) |
|
| |
| Parameters | | eFieldID | [in] Identifier of the field, e.g. lkpfSysNum (C++) or eLookupFld.lkpfSysNum (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 type to InvShipmentMethod
pLookup->SetFieldVal (lkpfTypeNum, ltInvShipmentMethod);
|
|
 |
C# |
| |
// Set the type to InvShipmentMethod
oLookup.SetFieldVal (eLookupFld.lkpfTypeNum, eLookupType.ltInvShipmentMethod);
|
|
 |
VBS |
| |
' Set the type to InvShipmentMethod
Call oLookup.SetFieldVal(oLookup.GetFieldID("TypeNum"), ltInvShipmentMethod)
|
|
 |
VB.NET |
| |
' Set the type to InvShipmentMethod
oLookup.SetFieldVal(eLookupFld.lkpfTypeNum, eLookupType.ltInvShipmentMethod)
|
|