Game Development Community

Return list count

by Eyaly · in Torque Game Builder · 07/09/2008 (3:37 am) · 1 replies

Hi
is there any function which return list count?

i have an array like this:

%this.myArray = "a b c d";
now i need a "count" function which return 4.

please help

#1
07/09/2008 (4:11 am)
If you the gap between words is a space, you can use "getWordCount", if it is a tab then you use "getFieldCount", if it is a new line then you use "getRecordCount".

If you want a particular element of that string, then you use "getWord", "getField" or "getRecord".