OMdel_array_val
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 OMdel_array_val.Arguments
object_idvalue_idReturned value
The status code, see OMdel_array_val. .Examples
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