String/Label routine operations: Difference between revisions

From Planimate Knowledge Base
Jump to navigation Jump to search
m (1 revision(s))
mNo edit summary
 
Line 1: Line 1:
<font face="MS Sans Serif">The following routine operations work as follows
The following routine operations work as follows


Append To Label appends a formatted value/label to a label Crop/Trim Label extracts a substring of a label name Remove Label Extention assumes label is a filespec with an extention, removes the last "." and everything following


Append To Label appends a formatted value/label to a label<br /> Crop/Trim Label extracts a substring of a label name<br /> Remove Label Extention assumes label is a filespec with an extention, removes the last "."<br /> and everything following


If the resulting string already exists in the label list, the target is now set to the index of the existing label, rather than a duplicate label being created in the label list.
All models using these operations will need to be updated to check if the target value has changed and use the new value. In addition the modeller may want to delete the old label (before the operation) since it will still be in the label list when an index to an existing label after the operation) is returned.
----


If the resulting string already exists in the label list, the target<br /> is now set to the index of the existing label, rather than a duplicate<br /> label being created in the label list.




All models using these operations will need to be updated to check<br /> if the target value has changed and use the new value. In addition the<br /> modeller may want to delete the old label (before the operation) since<br /> it will still be in the label list when an index to an existing label<br /> (after the operation) is returned.<br /> </font>
<font size="2">idkbase note 2</font>
----
 
[[Category:Routine]]
[[Category:Routine]]
[[Category:Labellist]]
[[Category:Labellist]]
[[Category:String]]
<font size="2">idkbase note 2</font>

Latest revision as of 18:48, 13 January 2008

The following routine operations work as follows

Append To Label appends a formatted value/label to a label Crop/Trim Label extracts a substring of a label name Remove Label Extention assumes label is a filespec with an extention, removes the last "." and everything following


If the resulting string already exists in the label list, the target is now set to the index of the existing label, rather than a duplicate label being created in the label list.


All models using these operations will need to be updated to check if the target value has changed and use the new value. In addition the modeller may want to delete the old label (before the operation) since it will still be in the label list when an index to an existing label after the operation) is returned.



idkbase note 2