Yoko
http://forum.yoko.com.ua/

return the length of array
http://forum.yoko.com.ua/viewtopic.php?f=1&t=14280
Page 1 of 1

Author:  iRuLez [ 2009-01-12 23:49:51 ]
Post subject:  return the length of array

Code:
sub main()

   dim array[11]
      array[0] = 1
      array[1] = 2
      array[2] = 3
      array[3] = 4
      array[4] = 5
      array[5] = 6
      array[6] = 7
      array[7] = 8
      array[8] = 9
      array[9] = 10
      array[10] = 11

uo.print(str(len(array)))

end sub

why print 5 ??

i need of return the length of the my_array
how can to do?

Author:  Millerbeer [ 2009-01-13 00:19:51 ]
Post subject: 

Code:
uo.print(str(len(array))) 


This command prints number of letters in a word - array :)
As I know, not possible to return the length of array

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/