Venice
Rate::SetFieldVal
 
Sets the value of a field.
 
void SetFieldVal (
    enum eRateFld eFieldID,
    VARIANT vFieldValue
)
 
Parameters
eFieldID
[in] Identifier of the field, e.g. ratfSysNum (C++) or eRateFld.ratfSysNum (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
CreateRate
GetFieldVal
GetFieldStr
GetFieldID
 
Samples
 
C++
 
// Set the value of the reference currency code to 'EUR'
pRate->SetFieldVal (ratfCurrencyCodeRef, "EUR");

C#
 
// Set the value of the reference currency code to 'EUR'
oRate.SetFieldVal (eRateFld.ratfCurrencyCodeRef, "EUR");

VBS
 
' Set the value of the reference currency code to 'EUR'
Call oRate.SetFieldVal(oRate.GetFieldID("CurrencyCodeRef"), "EUR")

VB.NET
 
' Set the value of the reference currency code to 'EUR'
oRate.SetFieldVal(eRateFld.ratfCurrencyCodeRef, "EUR")