Hello Martin,

Martin Hoeijmakers wrote:
>   Hi Philip,
>
> Looking at you name, I think you are dutch speaking.

Yep that's my native tongue.
I'll proceed in English and I added octdev mailing list so others can 
follow.

> I am using oct2xls for a while with only three arguments. Now, I get the
> error message "Character string (range) expected for arg # 4",
> which comes from line 142 (version io-1.0.15). It seems that I have to
> give the Excel range at forehand nowadays, which is not so easy.

You hit a bug here, sorry for that.
A similar bug exists in oct2ods.m  :-(

> Do you perhaps have an easy solution? I am just an electrical engineer
> and not a software specialist.

Is the following easy enough?

Change line 142 of oct2xls.m from (watch out for line wrap in this mail):

        if (isempty (crange) || ~ischar (crange)), error ("Character string 
(range) expected for arg # 4"); endif

into:

        if (~isempty (crange) && ~ischar (crange)), error ("Character string 
(range) expected for arg # 4"); endif

(i.e., add a "~" before isempty and change || into &&).


While you're at it, in oct2ods.m change line 144 from:

        if (~(isempty (crange) || ischar (crange))), error ("Character string 
(range) expected for arg # 4"); endif

into

        if (~isempty (crange) && ~ischar (crange)), error ("Character string 
(range) expected for arg # 4"); endif

(i.e., drop a pair of parentheses and change || into &&)


I'll update the fixed versions of these functions in svn.


Thanks for reporting,

Philip

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to