AnsweredAssumed Answered

API Property Manager Page - Textbox - How to assign typed text in textbox to a variable?

Question asked by Carlos De La Cruz on Jun 27, 2017
Latest reply on Jun 28, 2017 by Carlos De La Cruz

Hi - I'm currently working on building a Property Manager Page with a textbox control but, I'm struggling on how to pass on the text string typed by a user to a variable.

For example, in the code below I tried to assign the text to a variable DimId in order to, for example, send a message to the user "The text you typed is:"


Thank you for your help...



' Create Text Box

          caption = ""

          controlType = swPropertyManagerPageControlType_e.swControlType_Textbox

          alignment = swPropertyManagerPageControlLeftAlign_e.swControlAlign_Indent

          options = swAddControlOptions_e.swControlOptions_Enabled + swAddControlOptions_e.swControlOptions_Visible

          tip = "Enter the new Dimension ID"


          Set pm_RenameDim = pm_Group.AddControl(RenameDimID, controlType, caption, aligment, options, tip)


          Dim DimId As String


          'DimId = pm_RenameDim.Text


          MsgBox "DimId", vbExclamation, "Test", Empty, Empty