Synopsis
INTEGER FUNCTION OMFdel_array_val(object_id
. value_id)
#include <avs/omf.inc>
INTEGER object_id(OIDSIZ), value_id(OIDSIZ)
Description
For a complete description of this function, see OMget_array_val.
Arguments
object_id
The id of an object, expressed as an integer.
value_id
The id of the object to be deleted from the array, expressed as an integer.
Returned value
The status code (see ).
Example
A V file contains the following definitions:
group a;
group b;
group c;
group d;
group &grps[] => {a,b,c};
The following code illustrates how to delete a value in grps:
#include <avs/omf.inc>
INTEGER parent_object(OIDSIZ)
INTEGER a_id(OIDSIZ), b_id(OIDSIZ), c_id(OIDSIZ), d_id(OIDSIZ)
INTEGER grps_id(OIDSIZ), tmp_id(OIDSIZ)
...
IF (OMFfind_subobj(parent_object,
. OMFstr_to_name('grps'),
. OM_OBJ_RW,
. grps_id) .NE. 1)
. PRINT*,'Error searching for grps'
C
IF (OMFget_array_val(grps_id,1,tmp_id,OM_OBJ_RD) .NE. 1)
. PRINT*,'Error getting array value with index 1'
IF (OMFdel_array_val(grps_id,tmp_id) .NE. 1)
. PRINT*,'Error deleting array value with index 1'
See also
Related modules: