Type System::TSimple

Strings, Numbers and Booleans


Features

Length: Integer;

pos(SubString : String): Integer;

subString(Start : Integer, End : Integer): String; indexes are 1 based - so 1,2 is the first character of the string

cell(Index : Integer, Delimiter : String): String; get nth section of delimited string. index is 0 based

asDate: TDateTime; must contain a date with no time. any format acceptable

replace(From : String, To : String): String;

firstLine: String;

asTime: TDateTime; must contain a time with no date. any format acceptable

commaAdd: String;

pad(Width : Integer, Char : Char, Left : Boolean): String; pad width to length specified using char provided, to left (default) or right

encrypt(Key : Integer): String;

decrypt(Key : Integer): String;

encode: String; URL encoding

asDos: String; #13 and #10 to #13#10

asUnix: String; #13#10 to #13

plural: String;

title: String;

upper: String;

lower: String;

split(Token : String): Collection(String);

xml: String; escape characters appropriate for XML

html: String; escape characters appropriate for HTML

Strip(CharToRemove : Char): String;

StripLeft(CharToRemove : Char): String;

StripRight(CharToRemove : Char): String;

StripOuter(CharToRemove : Char): String;

Sp: String; Append a space if not blank

Space: String; Append a space if not blank

IsNumber: Boolean; True if the string is a number

IsInteger: Boolean; True if the string is a whole number

XmlAsHtml: String; Treat string as xml and present it in html

StartsWith: Boolean; True if the string starts with the parameter

StartsWithI: Boolean; True if the string starts with the parameter (Case Insensitive)

EndsWith: Boolean; True if the string ends with the parameter

EndsWithI: Boolean; True if the string ends with the parameter (Case Insensitive)

Add(On : Any): Simple;

Append(On : Any): Simple;

Plus(On : Any): Simple;

Minus(On : Any): Simple;

Multiply(On : Any): Simple;

Divide(On : Any): Simple;

Mod(On : Any): Simple;

Div(On : Any): Simple;

Collect(On : Any): Collection;

Span(On : Any): Collection;

LessThan(On : Any): Boolean;

GreaterThan(On : Any): Boolean;

LessThanEqual(On : Any): Boolean;

GreaterThanEqual(On : Any): Boolean;

In(On : Any): Boolean;

Like(On : String): Boolean; Second value is a regular expression - warning, slow

AsDuration: String;

TypeName: String;

Add: String;

Append: String;

And(On : Any): Boolean;

Or(On : Any): Boolean;

XOr(On : Any): Boolean;

Equal(On : Any): Boolean;

Same(On : Any): Boolean;

NotEquals(On : Any): Boolean;

NotSame(On : Any): Boolean;



© Kestral Computing P/L 2000 - 2003. HL7Connect v2.00-063 generated on 30-Nov 2015.
Keywords: TSimple