Function WinSetName

Hello! the 'WinSetName' function returns error # 1. What does this mean?

Parents
  • Documentation bug it seems.

    The WinSetName returns 1 (True) when successful.
    Calling it on a non-existing window does return a value >1.

    E.g :
    WinsetName("MyWindow") will set the name (note not the title or anything, just a name-value pair).

    if you then call WinNumber("MyWindow") it will retun the number of the window.
    Same if you call WinGetName() in a cicode function it will return the set name.
Reply
  • Documentation bug it seems.

    The WinSetName returns 1 (True) when successful.
    Calling it on a non-existing window does return a value >1.

    E.g :
    WinsetName("MyWindow") will set the name (note not the title or anything, just a name-value pair).

    if you then call WinNumber("MyWindow") it will retun the number of the window.
    Same if you call WinGetName() in a cicode function it will return the set name.
Children
No Data