array size

This forum is for eXpress++ general support.
Post Reply
Message
Author
BruceN
Posts: 280
Joined: Thu Jan 28, 2010 7:46 am
Location: Slidell, LA

array size

#1 Post by BruceN »

I have a 2 dimensional array (created from dc_excel2array() ). the number of rows is len(aArray). I can't seem to find a function that gives me the number of columns. Is there one? If not how can I determine it?

thanks
There are only 10 kinds of people - those who understand binary and those who don't :)

User avatar
Auge_Ohr
Posts: 1428
Joined: Wed Feb 24, 2010 3:44 pm

Re: array size

#2 Post by Auge_Ohr »

BruceN wrote:I have a 2 dimensional array (created from dc_excel2array() ). the number of rows is len(aArray). I can't seem to find a function that gives me the number of columns. Is there one? If not how can I determine it?
try

Code: Select all

nCol := len(aArray[1])
greetings by OHR
Jimmy

BruceN
Posts: 280
Joined: Thu Jan 28, 2010 7:46 am
Location: Slidell, LA

Re: array size

#3 Post by BruceN »

Thanks... that did it. Another quick question. I get a msgbox 'excel is not installed'. So, I take it that to use the dc_excel2array function a copy of excel MUST be installed? Would open office work?

As such, I've had to do my testing on wife's notebook which has excel on it - that does not lead to peaceful coexistance :)
There are only 10 kinds of people - those who understand binary and those who don't :)

User avatar
GeneB
Posts: 158
Joined: Sun Jan 31, 2010 8:32 am
Location: Albuquerque, New Mexico, USA
Contact:

Re: array size

#4 Post by GeneB »

Look at this question on this forum:

http://bb.donnay-software.com:8080/phpB ... ?f=2&t=256

GeneB

Post Reply