1 Pages (8 items)
It's possible to block the negative input in field's? - Messages
#1 Posted: 9/12/2022 3:33:22 PM
Hey Guys,
It's possible to block the negative input in field's using smath viewer?
It's possible to block the negative input in field's using smath viewer?
#2 Posted: 9/14/2022 9:40:10 AM
Nope, the best way to accomplish it easily is to filter the output applying abs() to the value before using it.
a:1
a:abs(a)
f(a): ...
a:1
a:abs(a)
f(a): ...
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 Posted: 9/14/2022 9:47:52 AM
Thanks Davide! Actually i do this, i will use an formatted label to show some message warning the user
#4 Posted: 9/14/2022 10:51:57 AM
You are welcome. As alternative one can develop a region that translates into a TextBox control with mask/validation filters. It might be tricky depending on the filter but it is feasible.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#5 Posted: 9/14/2022 11:04:57 AM
Wow! It will be a great plugin! It can be extend the use of smath viewer in so many ways
#6 Posted: 9/14/2022 3:53:11 PM
WroteWroteIt's possible to block the negative input in field's using smath viewer ?
Pretty simple to zap negative values:
1. transform negatives to '0'
2. strip vector from '0'
No need using Smath Viewer.
Cheers ... Jean.
Random [rnd(n)] Filter.sm (10 KiB) downloaded 22 time(s).
Composite clean negatives.
Thanks Jean, but it's not the case.
I have an long application developed in Smath Studio using Smath Viewer, and some of my algorithms need's a positive input for bending moment's. For now showing a warning message, and using an absolute value work, it's not the more elegant solution, but work.
#7 Posted: 9/14/2022 4:41:46 PM
WroteWroteI have an long application developed in Smath Studio ... , and some of my algorithms need a positive input for bending moment's.
The very original document at the algorithms level might help.
Not my discipline, but curious.
Refreshed version of the previous Filter Negatives.
Jean.
Random [rnd(n)] Filter.sm (10 KiB) downloaded 21 time(s).
Sure! The document is here:
DIMIS_219.sm (838 KiB) downloaded 32 time(s).
The section is called "Flexão Composta" the value of Msd, for this algorithm need's to be positive.
#8 Posted: 9/14/2022 4:44:08 PM
WroteThanks Jean, but it's not the case.
Get use to what he do, but never bow down or surrender.
He will try to hijack your topics with totally unrelated replies.
Just report his irrelevant posts, mods will take care it eventually.
Regards
1 Pages (8 items)
-
New Posts
-
No New Posts