Page 1 of 1

how to know elements of a vector

Posted: Sun Mar 24, 2019 4:27 am
by jairpinho
Hello guys
how to know elements of a vector
example Array (5,10)

Re: how to know elements of a vector

Posted: Sun Mar 24, 2019 1:33 pm
by Rathinagiri
Hi

I can't understand your question. Please give with a sample if possible.

Re: how to know elements of a vector

Posted: Sun Mar 24, 2019 7:44 pm
by jairpinho
Rathinagiri wrote: Sun Mar 24, 2019 1:33 pm Hi

I can't understand your question. Please give with a sample if possible.
hi Rathi,
example
aVetor := Array (5,10)
Len(aVetor) = -> 5 not 5,10

Re: how to know elements of a vector

Posted: Mon Mar 25, 2019 9:33 am
by Anand
Hi jairpinho,

len() always returns the number of rows for a given array. If the array is multidimensional, then we have to call len() again for the first row element like len(aVector[1])

Len() can not return (5,10), as this is not a number.

Regards,

Anand

Re: how to know elements of a vector

Posted: Mon Mar 25, 2019 11:01 am
by mol
You can have different lenghts of every row in an array (if the rows contain arrays, of course - in harbour every cell in every row could be different type)

Re: how to know elements of a vector

Posted: Tue Mar 26, 2019 5:10 pm
by danielmaximiliano
Ola Jair: o que você realmente quer fazer?

Re: how to know elements of a vector

Posted: Tue Mar 26, 2019 9:34 pm
by EduardoLuis
Hola Daniel

Que bueno verte nuevamente en el foro.-
Eduardo