Home

News

International

Screen Shots

Documentation

Download

Build

License

Credits

Contact

SourceForge Project

Tintware Documentation : Tint Programming Language : Tint Reference : Strings : string.offset

Syntax

#(%string.restore)
#(%string.offset)
#(%string.offset,%offset)

%string is any string. %offset is the new offset.

restore sets the offset of the string to zero. offset without an argument returns the current offset of the string. If %offset is specified and it is not greater than the length of the string, then the offset of the string is set to that value.

Example

#(def,a-string,abcdefgh)

#(a-string.offset)
0
#(a-string.offset,4)

#(a-string)
efgh
#(a-string.offset)
4
#(a-string.restore)

#(a-string)
abcdefgh