From: Maxx Chatsko on
Hello all,
I have several save dialog boxes that pop-up one after the other using uiputfile. The first time the dialog appears the user must select a folder for saving the data. I want the consecutive save dialog boxes to recognize the path/folder that the user selected in the first save dialog box. There has to be a way to do this with case? My code is as follows:

%Setup for to save FCI .spc
if save_fci==1;
%Prompt user with save dialog box
[filename_edit,text_path,filterindex]=uiputfile({'*.spc','SPC File (*.spc)';...
'*.*','All Files (*.*)'},'Save FCI Spectra');

%Return to PSLprcsr.m if the save dialog box is closed before saving
if text_path==0;
return
end
%Create path and filename for GSSpcWrite.m
fci_spc=char(strcat(text_path,filename_edit));
global SUPER_FCI WL_FCI
GSSpcWrite(fci_spc,SUPER_FCI,WL_FCI); %Save FCI data as .spc file
end

text_path is the variable that is passed along to other functions and handles of the other checkboxes. Any idears?
Thanks
Maxx