stmCreateDataItem
stmCreateDataItem (stm_context, chart_name, dataitem_name, structure, data_type, usage, array_lindex, array_rindex, definition, user_type_name, short_description, long_description)See Function Status Codes for the list of possible values.
Input/Output STM context descriptor that was returned by stmInitImport Left index of array. May be either a numeric constant or a dataitem name. NULL for non array type. Right index of array. May be either a numeric constant or a dataitem name. NULL for non array type. Name of user defined type. NULL for no user defined type. Note: If you are using an enumerated value for your array indices, you should define the enumerated index in full-quote notation form. For example, definingCOLOR’ RED
as the left index of an array sets the valueRED
in the of enum field of the element’s Data Dictionary form.