Automation Reference - JMP
Automation Reference - JMP
Automation Reference - JMP
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Application Object <strong>Reference</strong> for Automating <strong>JMP</strong><br />
Column Object<br />
NumDecPlaces<br />
Integer property that indicates the number of decimal places that are allowed for a numeric column. For retrieval<br />
only.<br />
Methods<br />
AddFormula(JSLText As String)<br />
Adds a formula to the column, given a valid formula specified using JSL.<br />
AddValueLabelToList(Value as String, Label as String) As Boolean<br />
Adds a value label to an automation list. The value label will not be assigned to the column until<br />
CommitValueLabels() As Boolean is called. In this way, several value labels can be accumulated for the column<br />
before they are assigned. Returns True for success, False for failure.<br />
See also CommitValueLabels() As Boolean and RemoveValueLabels() As Boolean.<br />
An example of using these methods in a Visual Basic application is:<br />
’ Using the data table "Big Class.jmp" already assigned in object DT<br />
Dim ColSex As <strong>JMP</strong>.Column<br />
Dim ColAge As <strong>JMP</strong>.Column<br />
Set ColSex = DT.GetColumn("sex")<br />
Set ColAge = DT.GetColumn("age")<br />
ColSex.AddValueLabelToList "M", "Male"<br />
ColSex.AddValueLabelToList "F", "Female"<br />
ColSex.CommitValueLabels<br />
ColAge.AddValueLabelToList "12", "Twelve"<br />
ColAge.AddValueLabelToList "13", "Thirteen"<br />
ColAge.AddValueLabelToList "14", "Fourteen"<br />
ColAge.AddValueLabelToList "15", "Fifteen"<br />
ColAge.AddValueLabelToList "16", "Sixteen"<br />
ColAge.AddValueLabelToList "17", "Seventeen"<br />
ColAge.CommitValueLabels<br />
CommitValueLabels() As Boolean<br />
Commits (adds) all the value labels to the columns that were previously assigned using<br />
AddValueLabelToList(Value as String, Label as String) As Boolean. After CommitValueLabels is called,<br />
the column will update with the new labels. Returns True for success, False for failure.<br />
See also AddValueLabelToList(Value as String, Label as String) As Boolean and RemoveValueLabels()<br />
As Boolean.<br />
An example of using these methods in a Visual Basic application is:<br />
’ Using the data table "Big Class.jmp" already assigned in object DT<br />
Dim ColSex As <strong>JMP</strong>.Column<br />
Dim ColAge As <strong>JMP</strong>.Column<br />
Set ColSex = DT.GetColumn("sex")<br />
Set ColAge = DT.GetColumn("age")<br />
Page 44