how to know elements of a vector

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
jairpinho
Posts: 420
Joined: Mon Jul 18, 2011 5:36 pm
Location: Rio Grande do Sul - Brasil
Contact:

how to know elements of a vector

Post by jairpinho »

Hello guys
how to know elements of a vector
example Array (5,10)
Jair Pinho
HMG ALTA REVOLUÇÃO xBASE
HMG xBASE REVOLUTION HIGH
http://www.hmgforum.com.br
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: how to know elements of a vector

Post by Rathinagiri »

Hi

I can't understand your question. Please give with a sample if possible.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
jairpinho
Posts: 420
Joined: Mon Jul 18, 2011 5:36 pm
Location: Rio Grande do Sul - Brasil
Contact:

Re: how to know elements of a vector

Post 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
Jair Pinho
HMG ALTA REVOLUÇÃO xBASE
HMG xBASE REVOLUTION HIGH
http://www.hmgforum.com.br
User avatar
Anand
Posts: 595
Joined: Tue May 24, 2016 4:36 pm
DBs Used: DBF

Re: how to know elements of a vector

Post 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
Regards,

Anand

Image
User avatar
mol
Posts: 3720
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: how to know elements of a vector

Post 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)
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: how to know elements of a vector

Post by danielmaximiliano »

Ola Jair: o que você realmente quer fazer?
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
EduardoLuis
Posts: 682
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina

Re: how to know elements of a vector

Post by EduardoLuis »

Hola Daniel

Que bueno verte nuevamente en el foro.-
Eduardo
Post Reply