How to input two static text box independently?
Ältere Kommentare anzeigen
How to input two static text box independently?
5 Kommentare
Geoff Hayes
am 26 Feb. 2020
Lee - please provide some context. Are your static text boxes part of a GUI? Are they labels?
Lee Marc Caya
am 27 Feb. 2020
Geoff Hayes
am 27 Feb. 2020
Lee - how do you indicate that you are done inputting to the input1 static text? What code do you have to write to that field? I'm guessing that you push one of the buttons (in the GUI) and you expect to see the text from that button appear in input1 (or input2) via the button callback. Do you have code that does that? If so, what does it look like?
Lee Marc Caya
am 27 Feb. 2020
Geoff Hayes
am 27 Feb. 2020
why
lud = get(handles.input1,'value');
? What are you expecting lud to be here? input1 is a static text control so how will the value (which isn't the string) relevant?
Also,
set(handles.input4,'String');
you aren't passing a string (array of characters) so nothing will happen here. What are you intending with this (and the other) line of code?
Is there a toggle button? Or is there something else that should indicate which line to use? What does input1 represent? What does input2 represent?
Antworten (0)
Kategorien
Mehr zu Characters and Strings finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
