SubString

SubString will cut an ascii, wide charactor or biniary string, from the start location for a given length.

TVariable SubString(
   int start,
   int length = 0
);

Parameters

start This will cut from the start location, widechars are 16bit blocks, while ascii and binary strings are 8bit blocks. If start is negative, the returned string will start at the start 'th character from the end of string.
length This will cut this length from start, widechars are 16bit blocks, while ascii and binary strings are 8bit blocks. It this value is zero then the remaining length of the string will be returned. If length is given and is negative, then that many characters will be omitted from the end of string (after the start position has been calculated when a start is negative).

Return Values

These methods will return the a temporary const value created on the stack.

Remarks

  • This method will return a TVariable of the same type as the original TVariable.
Example Use
TVariable var(L"123");
MessageBox(var.SubString(1,1).WString());//return "2"

Since

TScript Version 1.1.0

Also See

Copy, Position, StringReplace
 

Contact Ekky Software

All around the world Ekky Software is contactable seven days of the week by submitting the following details.

Thank you for your time and interest.
Ekky Software Customer Support Team.

Ekky Software Product Range
Ekky Software Homepage Texas Business Software ObjectDatabase++ TScript Ekky Software Homepage Texas Business Software ObjectDatabase++ TScript