Posted 15 Jan 2017 Hi, I'm working on a projects where i need the button text to be dynamic.(assigned by a string variable) i have not been able to figure out how to accomplish this easily. I made a workaround with placing a label over the button and have the label refer to a string, but it would be soo much easier and smoother to just have the button text assigned a variable. I would think i could access the the text field through code ,like: Btn_1.Text=My_Btn_String_1, but have had no luck with this. Would Greatly appreciate any help. Thanks, Frank. Share this post Link to post Share on other sites
Posted 15 Jan 2017 Check out this post and link. They have examples of exactly what you need. http://forums.mrplc.com/index.php?/topic/32077-njna-program-example-resource/ Share this post Link to post Share on other sites
Posted 15 Jan 2017 Thanks Mr Bits n Bytes! looks like i had the code right, but i did not have a proper call to the subroutine that assigned the variable to the 'Button.Text'. the example with dynamic list box sortet it out for me. Still, to me, it makes more sense if it was an option to have the text refer to a string in the property of the button... Share this post Link to post Share on other sites
Posted 27 Sep 2023 Does anybody have a live link or the example they can share here? the website linked in http://forums.mrplc.com/index.php?/topic/32077-njna-program-example-resource/ seems like the domain has been sniped Share this post Link to post Share on other sites