Borrar filtros
Borrar filtros

how to write information into text boxes after GUI runs?

3 visualizaciones (últimos 30 días)
I am trying to write strings into a text box after the GUI starts running. i tried to use 'set' command, this is what i have
set(hObject, 'String', input_folder_name)
so the input_folder_name is a user inputted variable. i put this command line in the function created when i made the text box. can anyone tell me where i did wrong? Thanks

Respuesta aceptada

Paulo Silva
Paulo Silva el 7 de Sept. de 2011
Put the code inside the OpeningFcn
set(handles.text1, 'String', input_folder_name)
%text1 is the name of the textbox, you might need to change it
  3 comentarios
Paulo Silva
Paulo Silva el 8 de Sept. de 2011
If the Ok is a pushbutton you just need to put the code inside that pushbutton callback
Andy
Andy el 8 de Sept. de 2011
thank you so much, works like a charm

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Characters and Strings en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by