octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #42687] listdlg.m: demo 1 errors


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #42687] listdlg.m: demo 1 errors
Date: Sat, 05 Jul 2014 07:50:29 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:25.0) Gecko/20100101 Firefox/25.0 Iceape/2.22

URL:
  <http://savannah.gnu.org/bugs/?42687>

                 Summary: listdlg.m: demo 1 errors
                 Project: GNU Octave
            Submitted by: philipnienhuis
            Submitted on: Sat 05 Jul 2014 09:50:28 AM CEST
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: Patch Submitted
             Assigned to: philipnienhuis
         Originator Name: Philip Nienhuis
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.8.1
        Operating System: Any

    _______________________________________________________

Details:

(see maintainers ML thread:
http://octave.1599824.n4.nabble.com/Octave-3-8-2-rc2-release-candidate-available-for-ftp-tt4665149.html)


When running rundemos.m in octave-3.8.2-rc2, I see a few of these num2str
errors:

:
- test inputdlg with prescribed row by column sizes and defaults.
Press <enter> to continue:
/home/philip/devel/octdev/oct382rc2/../octave-3.8.2-rc2/scripts/gui/listdlg.m
example 1:
 disp ('- test listdlg with selectionmode single. No caption, no prompt.');
 itemlist = {'An item \alpha', 'another', 'yet another'};
 s = listdlg ('ListString',itemlist, 'SelectionMode','Single');
 imax = numel (s);
 for i=1:1:imax
   disp (['Selected: ',num2str (i),': ', itemlist{s (i)}]);
 end

- test listdlg with selectionmode single. No caption, no prompt.
/home/philip/devel/octdev/oct382rc2/../octave-3.8.2-rc2/scripts/gui/listdlg.m
example 1: failed
Invalid call to num2str.  Correct usage is:

 -- Function File:  num2str (X)
 -- Function File:  num2str (X, PRECISION)
 -- Function File:  num2str (X, FORMAT)

Press <enter> to continue:


due to some syntax errors in listdlg.m's demos (space between function name
and parameter list within a [  ] construct).

Changeset attached - couldn't upload it to nabble.
Also changed single-quoted strings to double quoted.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 05 Jul 2014 09:50:28 AM CEST  Name: listdlg.cs  Size: 3kB   By:
philipnienhuis

<http://savannah.gnu.org/bugs/download.php?file_id=31677>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?42687>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]