![]() |
![]() |
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| DelevopersTScript APICopy |
TVariable& Copy( const TVariable &newValue, int offset = 0, int length = 0 );
| newValue | The new value. |
| offset | The start location, in bytes from the start of the string. 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. 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). |
TVariable var("123");
var.Copy("5",2);
MessageBox(NULL,var.ToString().WString(),L"",0);//return "125"
Copyright © 2007-2008, Ekky Software Pty Ltd.