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: 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 ]

Posts: 75
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]

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