2011/6/3 Philippe MALLET <philippe.mal...@cemes.fr>: > This is the result with the function you attached in your previous message. > >>> columns = {"", "OS"}; >>> data = {"true" , "30";"true" , "20";"true","10"}; >>> toto=zenity_list(columns, data, "checklist","numeric output","nan") > status = 0 > output = 30/\|/\20/\|/\10 > > val = > > 30 > 20 > 10 > > error: element number 2 undefined in return list > error: called from: > error: > /home/thesarch/Programmation/octaveforge/main/zenity/inst/zenity_list.m at > line 394, column 17 >
This look more like a bug in str2double. According to the documentation here (http://octave.sourceforge.net/octave/function/str2double.html) it should return 0 on success and -1 on error. I'd report the bug but savannah.gnu.org has been down due to what I heard was an hack attempt. just to make sure, the following code should behave this way > [num, status] = str2double({"34", "45", "23"}) num = 34 45 23 status = 0 0 0 is it the same on 3.4.0? Carnë ------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev