|
Exact Synergy Enterprise Class Reference: Tools
Class name: |
|
Tools |
Namespace: |
|
Exact.Core |
Assembly: |
|
Exact.Core.dll |
Description
This class contains shared methods for general use, that do not depend on any settings of the current user.
Members
Name |
Type |
Description |
ContentType(ByVal extension As String) |
Function: String |
Returns a MIME type for a supplied file extension, or complete file name. Examples:
"house.png" -> "image/png"
"doc" -> "application/msword"
".xml" -> "text/xml"
|
FormatHumanID(ByVal ID As String)
FormatHumanID(ByVal ID As String, ByVal Precision As Integer) |
Function: String |
Formats the passed in numeric value as a human id such as "01.234.567", with a default precision of 8 digits. |
GetCommandLineOption(ByVal cmd As String, ByVal option As String) |
Function: String |
Parses an option from a command line. The command line options are supposed to be in one of the forms:
/OPTION:value
/OPTION:"value"
|
ParseHumanID(ByVal HID As String) |
Function: Integer |
Parses a human ID to an integer. If the string is not a valid human ID, 0 is returned. |
ValidateGuid(ByVal value As Object)
ValidateGuid(ByVal value As Object, ByVal ReturnGuid As Boolean) |
Function: Object |
Returns Nothing if the value represents a valid GUID. Returns a correctly formatted GUID string if the value is a valid GUID. If ReturnGuid is True, then a .NET Guid object is returned, and not a string |
ValidateInt(ByVal value As String, Optional ByVal DefaultValue As Object = Nothing) |
Function: Object |
Checks if the passed string is a valid integer value, and returns that integer value if valid. If not valid, the DefaultValue is returned. |
IsZero(ByVal Value As Double) As Boolean |
Function: Boolean |
Returns True if Value is zero, ignoring very small rounding errors |
Sign (ByVal Value As Double) As Integer |
Function: Integer |
Returns the Sign of Value (-1 if negative, 0 if 0, +1 if positive), ignoring very small rounding errors |
|
Main Category: |
Support Product Know How |
Document Type: |
Online help main |
Category: |
SDK |
Security level: |
All - 0 |
Sub category: |
General |
Document ID: |
09.454.396 |
Assortment: |
Exact Synergy Enterprise
|
Date: |
19-05-2018 |
Release: |
|
Attachment: |
|
Disclaimer |
|
|