The following lists alphabetically general-purpose common PTL functions.
| GetIndexSymbol | GetStoredDateTimeValue | IsMoreOrEqual |
| GetStoredBooleanValue | GetStoredDoubleValue | SendEmail |
| GetStoredCharValue | GetStoredIntegerValue | SetStoredValue |
| GetStoredColorValue | IsEqual |
GetIndexSymbol
Returns index for symbol
Syntax
GetStoredBooleanValue
Returns the value to which the specified key is mapped in storage, or null if the storage contains no mapping for this key
Syntax
GetStoredCharValue
Returns the value to which the specified key is mapped in storage, or null if the storage contains no mapping for this key
Syntax
GetStoredColorValue
Returns the value to which the specified key is mapped in storage, or null if the storage contains no mapping for this key
Syntax
GetStoredDateTimeValue
Returns the value to which the specified key is mapped in storage, or null if the storage contains no mapping for this key
Syntax
GetStoredDoubleValue
Returns the value to which the specified key is mapped in storage, or null if the storage contains no mapping for this key
Syntax
double GetStoredDoubleValue ( string keyName) |
GetStoredIntegerValue
Returns the value to which the specified key is mapped in storage, or null if the storage contains no mapping for this key
Syntax
int GetStoredIntegerValue ( string keyName) |
IsEqual
Returns true if the first given value is equal to the second
Syntax
IsMoreOrEqual
Returns true if the first given value is equal to the second
Syntax
SendEmail
Sends an email message containing the specified string with the specified subject to the specified email address.
Syntax
void SendEmail( string toAddress, string messageSubject, string body) |
Parameters
Example
SendEmail("PTL function test", "subject", "test@test.net");
SetStoredValue
Associates the specified value with the specified key in storage.
Syntax
datetime SetStoredValue( string keyName, color value) datetime SetStoredValue( string keyName, datetime value) datetime SetStoredValue( string keyName, bool value) datetime SetStoredValue( string keyName, char value) |
Parameters
Example
SetStoredValue("myEUR", "1.714"); // str <- 1.714