Value of a variable in a textbox

Started by lesperguer, January 05, 2022, 11:36:45 AM

Previous topic - Next topic

lesperguer

Hello new friends, I am starting in odcl, I have made a form with buttons and it works great. What I have not been able to do is put the value or the result of a variable of a lisp function in the text box, for example (setq to 10) and that the value 10 appears in the text box after it is performed an operation. I have read the tutorial of the page, but there is no case that I achieve it. I would appreciate your help in guiding me, or share some other tutorial with me. look on youtube and there is very little content that exists

From Chile
Network engineer learning programming languages to optimize my worktasks.

honkinberry

In the Studio editor, select the control, and in Properties, click the button next to (Control Browser) - that will show you all the things you can do with the control, and even copy prototypical code to the clipboard.
In the case of a Text Box, you'll want this:
(dcl-Control-SetText [project/form/control] [value as string])

--J

lesperguer

#2
Many thanks Honkinberry, I
From Chile
Network engineer learning programming languages to optimize my worktasks.