MPSet Statement

Application
Mass Property Object MP#

Description
Used when setting the Mass Property Object value.

Usage
MPSet Object.Property, Values

  • Object
    Object name
    Mass Property Object is specified as either of MP (numerical value) or MP (label).

  • Property
    Property name defining the new value

  • Values
    The numbers and format differ according to the property.

Detailed Explanation
This is used for setting the properties of Mass Property Objects.

Usage Example
This example sets the value of the Mass Property Object, then acquires that value and displays it.

Function MPTest

  Integer iVar
  String sVar$

  'Set each property
  MPSet MP1.Label, "MP1_Label"
  MPSet MP1.Description, "MP1_Description"
  MPSet MP1.Mass, 1
  MPSet MP1.GravityCenter, 0, 0, 100

  'Acquires the number
  MPGet MP(MP1_Label).Number, iVar
  Print iVar

  'Acquires the label
  MPGet MP((iVar)).Label, sVar$
  Print sVar$
Fend

See Also
FGet, FSave, ForceObject