Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

Topic: Problem loading data back into fields
Replies: 4   Last Post: Dec 9, 2012 10:40 PM

Advanced Search

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

Posts: 74
Registered: 4/23/12
Problem loading data back into fields
Posted: Dec 7, 2012 6:54 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello !

I have used this function with success in the past, but it seems that it doesn't work for my new project. Basically I am saving "edit text" boxes content to a .mat file, which seem to work fine, but when I try to load that file and put the values back into the "edit text" boxes, I get this error :

----------------
Error using handle.handle/set
Invalid or deleted object.

set(handles.var1_edittext, 'string', state.var1_edittext);
----------------

I would like to put back the value "var1" into the "var1_edittext" box, but it doesn't work. To save it to my .mat file I've used the following function :

----------------
state.var1_edittext = get(handles.var1_edittext, 'string');
----------------

I am confused because I have used the same technic for previous projects and it worked !

Thanks a lot in advance ! :-)



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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.