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 件のコメント

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

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCharacters and Strings についてさらに検索

タグ

質問済み:

2014 年 1 月 27 日

コメント済み:

2014 年 1 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by