EditDataItemValueSet

Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.

SalBoolean EditDataItemValueSet( SalNumber nEditFlagSet, SalNumber nValue )

The EditDataItemValueSet method sets the value of a data item and optionally marks the item as edited.

Parameters

Name Description
SalNumber nEditFlagSet Indicator to tell if the data item should be marked as edited after the value has been set. Specify TRUE or FALSE for this parameter.
SalNumber nValue String handle of the value to set. For date fields the string should be formatted as YYYY-MM-DD-HH24.MI.SS, for numerics it should be formatted with a dot (.) as the decimal number.

Returns

The return value is TRUE if the value was successfully set, FALSE otherwise.

Example

this.cmbRiskAnalysisId.EditDataItemValueSet(1, SalString.Null.ToHandle());
If nValue is a SalString it should be converted to a SalNumber using the ToHandle() method as in the above example. If nValue is a SalNumber it is not required to call the ToHandle() method as shown in the below example.
this.colnDefaultCharTemp.EditDataItemValueSet(0, SalNumber.Null);