Forum Discussion

MrDysprosium's avatar
MrDysprosium
Contributor
8 years ago

How to access the caption of a winform programmatically?

I see in my Object Browser a "Caption" that I want to access the value of in a script.

Assuming that the parent object is found at "NameMapping.Sys.ProgramName.ProgramNameLoginForm", how do I then access the caption of said form?

  • Hi,

     

    You can get using NameMapping.Sys.ProgramName.ProgramNameLoginForm.Caption

     

    If you not able to get it still, then share some snapshot of the Object properties.

  • HKosova's avatar
    HKosova
    SmartBear Alumni (Retired)

    Tip: When you select a property in the Object Browser or Object Spy, the syntax to access that property is displayed at the top, and you can copy the syntax to the clipboard.

     

  • shankar_r's avatar
    shankar_r
    Community Hero

    Hi,

     

    You can get using NameMapping.Sys.ProgramName.ProgramNameLoginForm.Caption

     

    If you not able to get it still, then share some snapshot of the Object properties.