Synopsis
INTEGER FUNCTION OMFset_data_type(object_id,
. data_type)
#include <avs/omf.inc>
INTEGER object_id(OIDSIZ)
INTEGER data_type
Description
For a complete description of this function, see .
Arguments
object_id
The id of an object, expressed as an integer.
data_type
The new data type of the object, expressed as an integer. The FORTRAN API supports the following codes which are predefined in the include file omf.inc :
|
Type
|
Meaning
|
|
OM_TYPE_INT |
Integer |
|
OM_TYPE_FLOAT |
Single-precision floating point |
|
OM_TYPE_DOUBLE |
Double-precision floating point |
|
OM_TYPE_STRING |
Character string |
|
OM_TYPE_UNSET |
Not set, that is, its type is prim |
Returned value
The status code (see ).
Example
#include <avs/omf.inc>
INTEGER data_id(OIDSIZ)
...
IF (OMFset_data_type(data_id, OM_TYPE_FLOAT) .NE. 1)
. PRINT*,'cannot set data type'
See also
Related module: