![]() |
![]() |
![]() |
![]() |
OMFget_str_val
Synopsis
INTEGER FUNCTION OMFget_str_val(object_id,
. cval,
. maxlen)
#include <avs/omf.inc>
INTEGER object_id(OIDSIZ)
INTEGER maxlen
CHARACTER*(*) cvalDescription
For a complete description of this function, see OMget_str_val .Arguments
object_idcvalA character string specifying the object's value. This call requires that you pass a locally defined character variable and doesn't allow for memory allocation.
maxlenReturned value
The status code (see OMget_str_val).Examples
#include <avs/omf.inc>
INTEGER parent_object(OIDSIZ), cval_id(OIDSIZ)
CHARACTER*30 value
...
IF (OMFfind_subobj(parent_object,
. OMstr_to_name('cval'),
. OM_OBJ_RD,
. cval_id) .NE. 1)
. PRINT*,'Error searching for cval'
C
IF (OMFget_str_val(cval_id,value,LEN(value)) .NE. 1)
. PRINT*,'Error getting value of object cval'See Also
![]() |
![]() |
![]() |
![]() |