[Ma...] Posted May 2, 2022 Share Posted May 2, 2022 Hello there, I'm trying to create dialog, where colleagues will check if either is part with or without a pad. We don't have PCM, so I've tryied to place this formula to result element: ord( not( confirm("Zápustka bez podložek?") ) ). My goal is, that if they click YES, then result should be zero (0) otherwise one (1) - later i want to use it to change some points in strategy. But i always get same result regardless the answer. When i try to test formula - it came ok, but after closing window it stays same. Any ideas? I just want one question, then run whole part. Thx Link to comment Share on other sites More sharing options...
[Ph...] Posted May 2, 2022 Share Posted May 2, 2022 Give this a try... confirm("Does part have a pad?").asCBoolean Link to comment Share on other sites More sharing options...
[Ma...] Posted May 2, 2022 Author Share Posted May 2, 2022 Thanks for shortening code, but still same - I can not save number/value. If i use it somewhere in strategy, then it's working - but i want to edit some point in other elements. Link to comment Share on other sites More sharing options...
[Ph...] Posted May 2, 2022 Share Posted May 2, 2022 Guess I'm not following... My thoughts were to add multiple strategies and use conditions that reference the result element. Link to comment Share on other sites More sharing options...
[Ma...] Posted May 2, 2022 Author Share Posted May 2, 2022 I wanted to place this formula to result element, but nothing what i tryied worked - but confirm dialog works in direct approach like in strategy - but in result element or others as nominal it simply don't. There is still "0,0000" and it's not changing Link to comment Share on other sites More sharing options...
[Ma...] Posted May 2, 2022 Author Share Posted May 2, 2022 Well it seems that when i run program, then it is stored until program ends or quits. After reviewing value by opening result element there is again default value - so runtime is stored. Link to comment Share on other sites More sharing options...
[Ph...] Posted May 2, 2022 Share Posted May 2, 2022 Please sign in to view this quote. Yep, that was going to be my next suggestion. There is another trick you could play around with, but I'll refrain from posting it in an open thread. Send me a PM if you'd like to know more. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in