From my "Main" window I have a button that opens another window "List". In the List window I have two listboxes the one on the left has names on it and on the one on the right i add names to it. However I am unable to pass the added names to the list to the "Main" window once I click the ''OK" button on the "List" window.
function Done_Button_Callback(hObject, eventdata, handles)
SelectedFaults = get(handles.SelectedFaults_Listbox,'String');
set(Main, handle.Faults_Listbox,'String',SelectedFaults)
close(Insert_Fault)
the error that I'm getting is:
??? No appropriate method, property, or field Faults_Listbox for class handle.
Error in ==> Insert_Fault>Done_Button_Callback at 380
set(Main, handle.Faults_Listbox,'String',SelectedFaults)
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> Insert_Fault at 42
gui_mainfcn(gui_State, varargin{:});
??? Error while evaluating uicontrol Callback
both m files are in the same directory. I'm stuck. thank you for your help