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 ?
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 Exchange에서 Characters 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