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 commentaires

Walter Roberson
Walter Roberson le 27 Jan 2014
Did you possibly rename a text field without going through GUIDE ?
nour issa
nour issa le 27 Jan 2014
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.
per isakson
per isakson le 27 Jan 2014
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?
nour issa
nour issa le 27 Jan 2014
it couldn't evaluate it, here's a photo
per isakson
per isakson le 27 Jan 2014
handles.text41 is not a handle or handles.sol1 is not a string. The syntax look ok.
Walter Roberson
Walter Roberson le 27 Jan 2014
Is that the only occurrence of handles.text41 in the code?
nour issa
nour issa le 27 Jan 2014
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
Walter Roberson
Walter Roberson le 27 Jan 2014
How does handles.text41 get created in your code? And is there any call to clf after it is created?
nour issa
nour issa le 27 Jan 2014
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.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Characters and Strings dans Centre d'aide et File Exchange

Tags

Question posée :

le 27 Jan 2014

Commenté :

le 27 Jan 2014

Community Treasure Hunt

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

Start Hunting!

Translated by