Community Tip - You can change your system assigned username to something more personal in your community settings. X
Hi. As a beginner I looked at
https://community.ptc.com/t5/Mathcad/Mathcad-Prime-10-Text-Box-Advanced-Controls/m-p/952250#M212068 ...
and tried to modified it to a simple comparison if a value "a" is less or bigger than 1. For example an unit check of stress in some member is a=0.86. If a < 1 then member pass, if a => 1 then member fails. But a message "a" is undefined at row xxx appeared and I could not find a reason. I am sure that it is easy for experienced people in JScript. Thanks. D.
Solved! Go to Solution.
You would have to attach the sheet with the failing component.
If you get the message you described it means that you had used variable name "a" in your script. have you defined variable "a" in your script and assigned it to the input variable? Note that you can't expect the script to know the variable name of a Prime variable.
You would have to attach the sheet with the failing component.
If you get the message you described it means that you had used variable name "a" in your script. have you defined variable "a" in your script and assigned it to the input variable? Note that you can't expect the script to know the variable name of a Prime variable.
Hi. Thanks for a prompt answer. Finally I have found where I did a mistake.
It was surprise for me that when I gave away rows with definitions of TextBox colors,
the color of field stayed as it was at that moment, so green, when it was green or red when it was red: