I had an idea that I think can be useful. It's not really an option
for zenity but could be added to the function. At the moment is not
possible to select several (or even single) files from different
folders and return them all in one cell array. At least in my case,
I'd find this option quite useful.

How I solved it my code was with the following code

do
    current_files = zenity_file_selection("Choose files to analyze",
'multiple');
    if ( !exist ("file_list", "var") && !isempty(current_files{1}) )
        file_list = current_files;
    elseif ( !isempty(current_files{1}) )
        file_list = vertcat(file_list, current_files);
    endif
until ( isempty(current_files{1}) )

if ( !exist ("file_list", "var") )
    error ("No file was selected")
endif

I guess I could adapt this to the zenity_file_selection function. If
so, do you think it should use the directory of the previous selected
files as the default place? Or should I leave the zenity functions to
do only what the zenity program does?

On another note, if a field from a structure does not exist and I use
it in the function 'exist', I don't get a 0, I get an error saying
that the field does not exist. Is this a bug or it's actually supposed
to behave that way? I solved it by using isfield but I was surprised
by that.

Carnë Draug

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to