M mechweb Jun 16, 2005 #1 Does ms have any functions that can count the elements in an array, or do I just need to write a for loop?
Does ms have any functions that can count the elements in an array, or do I just need to write a for loop?
J Josip Habjan Jun 16, 2005 #2 Hi, Did you try: string[] arr1 = new string[10]; int count = arr1.Length; ? Regards, Josip Habjan, Croatia URL: http://www.habjansoftware.com
Hi, Did you try: string[] arr1 = new string[10]; int count = arr1.Length; ? Regards, Josip Habjan, Croatia URL: http://www.habjansoftware.com
M mechweb Jun 16, 2005 #3 That did it, thanks. Josip Habjan said: Hi, Did you try: string[] arr1 = new string[10]; int count = arr1.Length; ? Regards, Josip Habjan, Croatia URL: http://www.habjansoftware.com mechweb said: Does ms have any functions that can count the elements in an array, or do I just need to write a for loop? Click to expand... Click to expand...
That did it, thanks. Josip Habjan said: Hi, Did you try: string[] arr1 = new string[10]; int count = arr1.Length; ? Regards, Josip Habjan, Croatia URL: http://www.habjansoftware.com mechweb said: Does ms have any functions that can count the elements in an array, or do I just need to write a for loop? Click to expand... Click to expand...