Get the first letters of a string
Hello,
Let's say that I have the string "tyranitar". With string[X], I can get the letter that I want, but is there a method or a fast way to get the first X chars of a string ? For exemple if I want "tyrani", how can I ask to substract from [0] to [6] ?
Thanks
Let's say that I have the string "tyranitar". With string[X], I can get the letter that I want, but is there a method or a fast way to get the first X chars of a string ? For exemple if I want "tyrani", how can I ask to substract from [0] to [6] ?
Thanks