
Unrecognized method, property, or field 'stopEditField' for class 'Resp'.
    7 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Yusuf Sür
 el 7 de En. de 2023
  
    
    
    
    
    Respondida: Aditya
    
 el 24 de En. de 2023
            Hello everyone
I am trying to code a GUI for my project and I am getting this error when I run my code. I am getting my data from CoolTerm and trying to show my data in real time. I attached the code. 
I searched the topics and found some related ones with mine but it didn't fix my problem.
Can you please tell me what is the problem ?
Thank you
I attached the code
0 comentarios
Respuesta aceptada
  Aditya
    
 el 24 de En. de 2023
        Hi, 
I understand that you are getting an error when pressing the stop button in an application created with the app designer. 
On inspecting the '.mlapp' file that you have shared, following line results in the error: 
app.stopEditField.Value=1;
The reason why you are gettin the error, Unrecognized method, property, or field 'stopEditField' for class 'Resp'. is because the application Resp doesn't have any object, stopEditField. You will have to add this object either through properties or from the Component library.
Based on the name, it appears that stopEditField is a Edit Field in the component library. You can add the Edit Field and name it accordingly as shown in the following screenshot.

You will also have to change 1 to a string in order to update the Edit Field
app.stopEditField.Value="1";
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

