Programmatically set button text

[亡魂溺海] 提交于 2019-12-24 12:24:16

问题


How do you programmatically set the button text in Clarion? Obviously I can use the designer interface to set the default text on a control, but I want to be able to change the display text in the code. Is there a way to do that?

I've tried things like the following, but nothing has worked or even compiled:

?Button1:Text = 'Test'

回答1:


You can programmatically set the text of a button in Clarion using PROP:text:

?Button1{PROP:Text} = 'Test'

I figured this out based on some research from another question I had here.



来源:https://stackoverflow.com/questions/24939877/programmatically-set-button-text

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!