Skip to main content

Dynamically change button label?

Comments

1 comment

  • Permanently deleted user

    Thanks Nico,  That worked out great.

    One other question - somewhat related that perhaps you might have an answer to.  Is there a way, using a VB or C# script in the runtime modifications, to access the form object?  I tried to set one up but couldn't see a way to add the form to the script parameters.  When you define the objects to pass into the script, the list includes Form Items, etc. but not the form itself.  What I'd like to do is avoid using many Assign activites by replacing them with a simple script that contained lines equivalent to all the Assign activities I'd need (one Assign for every form item label).  Something along the lines of:

    form.Find(Of TextBoxFormItem1).Label.Text = languageDictionary("degrees")

     

    form.Find(Of TextBoxFormItem2).Label.Text = languageDictionary("minutes")

     

    form.Find(Of TextBoxFormItem3).Label.Text = languageDictionary("seconds")

    This way I only need one script activity instead of many Assign's.

     

     
    0

Please sign in to leave a comment.