The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: pass handle from one m file to another
Replies: 1   Last Post: Jun 8, 2012 1:13 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 3
Registered: 6/8/12
pass handle from one m file to another
Posted: Jun 8, 2012 11:05 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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)
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

Error in ==> Insert_Fault at 42

gui_mainfcn(gui_State, varargin{:});
??? Error while evaluating uicontrol Callback
both m files and in the same directory. I'm stuck. thank you for your help

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.