2013-10-15 21:01 UTC
Hi all,
I've been bummin' around here for a long time. I search for answers but I need very basic understanding now and cannot find how to do what I need. My ignorance is to blame.
I have a TextBox that I need to always display the value of a Global variable. When the user edits the text in the TextBox, I want to change the Global variable to the value set by the user and the TextBox needs to continue displaying the value from the Global.
I have tried to follow the tutorial but I do not know what I'm needing to do to set the Text in the TextBox OnInitialize.
I got the code from the "Control Browser" but it looks like jargon and I have not been able to interpret what I must customize to make it work.
(dcl_Control_SetProperty CNTRL-PNL_CPL-CAD_AccessTextBox PropertyApiName [as String] NewValue [as Varies])
The tutorial leads me to believe I need to change "PropertyApiName [as String]" but what must go there? And, What do I do with "NewValue [as Varies]".
My global is *ACCESS*.
Also, how do I trigger a regen on my drawing if/when the TextBox is edited.
Thank you for any suggestions/advice/help.
I've been bummin' around here for a long time. I search for answers but I need very basic understanding now and cannot find how to do what I need. My ignorance is to blame.
I have a TextBox that I need to always display the value of a Global variable. When the user edits the text in the TextBox, I want to change the Global variable to the value set by the user and the TextBox needs to continue displaying the value from the Global.
I have tried to follow the tutorial but I do not know what I'm needing to do to set the Text in the TextBox OnInitialize.
I got the code from the "Control Browser" but it looks like jargon and I have not been able to interpret what I must customize to make it work.
(dcl_Control_SetProperty CNTRL-PNL_CPL-CAD_AccessTextBox PropertyApiName [as String] NewValue [as Varies])
The tutorial leads me to believe I need to change "PropertyApiName [as String]" but what must go there? And, What do I do with "NewValue [as Varies]".
My global is *ACCESS*.
Also, how do I trigger a regen on my drawing if/when the TextBox is edited.
Thank you for any suggestions/advice/help.