Daylight v4.9
Release Date: 1 February 2008


dt_setreal - specify the real value of a named property

Generic Prototype

dt_setreal(dt_Handle, dt_String, dt_Real) => dt_Boolean

C Prototype

#include "dt_smiles.h"

dt_Boolean dt_setreal(dt_Handle object, dt_Integer nlen, dt_String pname, dt_Real value)

FORTRAN Prototype

include ''

logical dt_f_setreal(object, pname, value)

integer*4 object
character*() pname
real*4 value


Causes the named property to be created or modified. Sets the value of the named property 'pname' to 'value'. Also sets the property type of the named property to be set to DX_PROP_REAL (returned by dt_proptype(3)).

Named properties can be set for any object in the toolkit. The properties are owned by the object, and become invalid if the object is deallocated. A property name may be any valid string (see dt_setstringvalue(3)).

Return Value

Returns the success (TRUE) or failure (FALSE) of the operation.

Related Topics

dt_real(3) dt_proptype(3) dt_setstringvalue(3)