2/8/2022 7:11 AM | |
Joined: 10/19/2021 Last visit: 2/28/2022 Posts: 46 Rating: (3) |
DM987 mentioned to use 67 as WindowFlag (not 64) in his example. Maybe this is the error? |
2/8/2022 11:44 AM | |
Joined: 6/22/2017 Last visit: 12/11/2024 Posts: 420 Rating: (57) |
Hi, the error message, that Faceplate.... is not defined is correct here. The example provided before is probably taken from inside a faceplate. From the outside your code should have worked, you just failed in that one line, where you wrote po[number].HMIWindowFlag = 64; By the way, i don't know how you store that number. You create an array of possible Faceplates and fill the index with a text-string? Have a look at the following document on how to trace / debug: https://support.industry.siemens.com/cs/ww/en/view/109758536 I would be curious, if po[number] is the correct object. If so, WindowFlags should work on that. Greetings |
Follow us on