Format
Last update: 16.07.2025public class Format : PHXCOMObject
This is the wrapper class for formatting
Author
Fraley, 1-2004
Functions
| Name | Summary |
|---|---|
| disableGC | public disableGC(gc: Boolean) If true, prevents releaseObjects from doing anything. |
| doubleToEditableString | public doubleToEditableString(val: Double): String Converts a double to its formatted string representation but with full precision for editing |
| doubleToString | public doubleToString(val: Double): String Converts a double to its formatted string representation |
| getFormat | public getFormat(): String Return to format's string representation |
| longToEditableString | public longToEditableString(val: Long): String Converts a long to its formatted string representation but with full precision for editing |
| longToString | public longToString(val: Long): String Converts a long to its formatted string representation |
| release | public release() Releases the COM reference to ModelCenter for this object. |
| releaseObjects | public releaseObjects() This function attempts to release any COM resources left behind from objects which have been finalized but release() was never called on them. |
| setFormat | public setFormat(format: String) sets the format string |
| setReferenceDebugMode | public setReferenceDebugMode(on: Boolean) When set to true, the system will keep a list of active COM objects that are allocated but not yet released since this method was invoked. |
| stringToDouble | public stringToDouble(str: String): Double Converts a string representing a number in the given format to a real number |
| stringToLong | public stringToLong(str: String): Long Converts a string representing a number in the given format to an integer number |
| stringToString | public stringToString(str: String): String Converts a string to its formatted string representation |