UpdateValue function
Syntax
UpdateValue(scrollpath, [recordname.]fieldname, target_row, value)
where scrollpath is:
[RECORD.level1_recname, level1_row, [RECORD.level2_recname, level2_row, ]]
To prevent ambiguous references, you can use SCROLL. scrollname, where scrollname is the same as the scroll level’s primary record name.
Description
Use the UpdateValue function to update the value of a specified field with the value provided. The value must be of a data type compatible with the field.
Note:
This function remains for backward compatibility only. Use the Value field property instead.
Parameters
| Parameter | Description |
|---|---|
|
Scrollpath |
A construction that specifies a scroll level in the component buffer. |
|
target_row |
An integer specifying the row of the field to update. |
|
[recordname .]fieldname |
The name of the field that you want to update. The field can be on scroll level one, two, or three of the active page. The recordname prefix is required if the call to UpdateValue is not on the record definition recordname. |
|
Value |
The new value to put into the target field. |
Returns
None.
Example
This example updates values in the level-one scroll:
For &I = 1 To &ROW_CNT
UpdateValue(RECORD.ASGN_CMP_EFFDT, &I, ITEM_SELECTED, "Y");
End-For;
The next example loops through rows in the level-two scroll:
For &I = 1 To &CURRENT_L2
UpdateValue(RECORD.ASGN_CMP_EFFDT, &CURRENT_L1, RECORED.SOME_L2_RECORD, &I, TO_⇒
CUR, &HOME_CUR);
End-For;