Reference to non-existent field 'text41'.

hello, I am trying to set a value for a static text in my guide, but the program is not finding the field "text41", noting that the tag of my static text is true and my program does not include faults but this one. So please tell me how can I fix this and make my program sets a value for a static text. Thank You.

10 Comments

Did you possibly rename a text field without going through GUIDE ?
I haven't changed anything about the text field, i just changed its content (string). I am now trying to put a break point in my code, when i press continue running, the text shows the value i want. I actually don't know what its problem is.
Is there an error message?
When in break mode, select the offending line, right-click and chose Evaluate Selected. Do you get the same error message?
it couldn't evaluate it, here's a photo
handles.text41 is not a handle or handles.sol1 is not a string. The syntax look ok.
Is that the only occurrence of handles.text41 in the code?
no, the value of this static text should be replaced each time with the respect to the case, i have many cases in my code and each case gives a different value
How does handles.text41 get created in your code? And is there any call to clf after it is created?
actually it is created outside the code, in the GUI figure, i set its value to none in the property inspector (empty string), than i tried to change its value from the code but it is not working.

Sign in to comment.

Answers (0)

Categories

Tags

Asked:

on 27 Jan 2014

Commented:

on 27 Jan 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!