how to know elements of a vector

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
jairpinho
Posts: 284
Joined: Mon Jul 18, 2011 5:36 pm
Location: Rio Grande do Sul - Brasil
Has thanked: 3 times
Been thanked: 8 times
Contact:

how to know elements of a vector

Post by jairpinho » Sun Mar 24, 2019 4:27 am

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: 5257
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 167 times
Been thanked: 170 times
Contact:

Post by Rathinagiri » Sun Mar 24, 2019 1:33 pm

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: 284
Joined: Mon Jul 18, 2011 5:36 pm
Location: Rio Grande do Sul - Brasil
Has thanked: 3 times
Been thanked: 8 times
Contact:

Post by jairpinho » Sun Mar 24, 2019 7:44 pm

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: 357
Joined: Tue May 24, 2016 4:36 pm
DBs Used: DBF
Has thanked: 86 times
Been thanked: 49 times

Post by Anand » Mon Mar 25, 2019 9:33 am

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
Image

User avatar
mol
Posts: 3154
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 200 times
Been thanked: 107 times
Contact:

Post by mol » Mon Mar 25, 2019 11:01 am

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: 2099
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 122 times
Been thanked: 16 times
Contact:

Post by danielmaximiliano » Tue Mar 26, 2019 5:10 pm

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

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. : +54901169026142
Telegram Name : DaNiElMaXiMiLiAnO

EduardoLuis
Posts: 629
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina
Has thanked: 1 time
Been thanked: 48 times

Post by EduardoLuis » Tue Mar 26, 2019 9:34 pm

Hola Daniel

Que bueno verte nuevamente en el foro.-
Eduardo

Post Reply