No, it did not help to add a script at the checkbutton 'ButtonOn' and 'ButtonOff' I solved it another way. Checkbuttons work automatically as 'True' or 'False' on the expression (in my case 'platstick1') - I had an error at another place in my code, see the error here:
The code is about creating fas4h1 either when platstick1 is true or false and in 3DFA 4.9.6.8 if I just erase 'if (platstick1 == falsel)' it worked.Code:if (platstick1 == true) { fas2 = fas2h1; platstab(fas2); fas3h1 = fas2h1 + toNumber (platsjustering); // Här tog jag bort en multiplikation - platstick adderar mellan 20-29 i skala om 10 // fas4h1 = fas3h1 / 2; } else if (platstick1 == false) // här var det nödvändigt att ta bort 'if (platstick1 == falsel)' // efter den här förändringen fungerade platsreset { fas4h1 = fas2h1; } // här under kommer vildhetsdelen fas4 = fas4h1;
Problem solved!




Reply With Quote