*Integer()
Creates an integer entity.
Syntax
*Integer(integer_name,"integer_label",edit_option)
Arguments
- integer_name
- The variable name of the integer entity.
- integer_label
- The descriptive label of the integer entity.
- edit_option
- A keyword which specifies whether or not this data member entity is editable in the MotionView graphical user interface. Valid values are: EDIT or NO_EDIT
Example
*DefineDataSet(dsdef_vehpar)
*String(model, "Model")
*Integer(wheelbase, "Wheelbase", EDIT)
*Real(spr_mass_cg_hgt, "Sprung Mass CG Height")
*Real(frnt_spr_mass, "Front Sprung Mass")
*Real(rear_spr_mass, "Rear Sprung Mass")
*EndDefine()
*DataSet(ds_vehpar, "Vehicle Parameters", dsdef_vehpar)
*SetString(ds_vehpar.model, "Sport Utility")
*SetInteger(ds_vehpar.wheelbase, 3000)
*SetReal(ds_vehpar.spr_mass_cg_hgt, 800.0)
*SetReal(ds_vehpar.frnt_spr_mass, 800.0)
*SetReal(ds_vehpar.rear_spr_mass, 600.0)
Context
Properties
Property | Returns Data Type | Description |
---|---|---|
label | string | The descriptive label of the integer entity. |
state | boolean | Control state (TRUE or FALSE). |
value | integer | The value of the integer entity. |
varname | string | The variable name of the integer entity. |
Comments
Integer entities may be created in dataset or table record definitions.
Variables created in *Integer() statements are assigned values in *SetInteger() statements.
*DefineSystem(def_sys )
*Integer(int_name, "int variable", EDIT)
*SetInteger(Ds_Variable.int_name, 100)
*EndDefine()