Clearing Variables for Re-use in same document

Clearing Variables for Re-use in same document - Messages

#1 Posted: 3/19/2025 5:07:38 AM
Dakota

Dakota

0 likes in 9 posts.

Group: User

I'm using SMATH to bring in template calcualtions and substitute for hand calculations, but one thing I couldn't figure out is if it is possible to "clear" a variable so I can use the equation multiple times without carrying variables forward. I tried using the separator, but it doesn't clear variables.
#2 Posted: 3/19/2025 6:12:39 AM
⚜ Kenny Lemens, P.E. ᵂᴵ

⚜ Kenny Lemens, P.E. ᵂᴵ

74 likes in 164 posts.

Group: User

Greetings,

In the 「Special Functions」 Plugin, you can get access to the function "Clear()". Here are (2) forum posts on topic to your question:



May this be of Good Help;
⚜ Kenny Lemens, P.E. ᵂᴵ
"No matter where you go, there you are." -Buckaroo BanzaiHotkeys: https://en.smath.com/forum/resource.ashx?a=45771&b=2
#3 Posted: 3/19/2025 9:25:59 PM
Dakota

Dakota

0 likes in 9 posts.

Group: User

Wrote

Greetings,

In the 「Special Functions」 Plugin, you can get access to the function "Clear()". Here are (2) forum posts on topic to your question:



May this be of Good Help;
⚜ Kenny Lemens, P.E. ᵂᴵ



Many thanks. For my reference, and so people don't have to follow the links above, is just type Clear(variable1,variable2,etc)=1

Edit: Is there a way to clear all variables without specifying in the ()?
#4 Posted: 3/20/2025 2:12:28 AM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

Wrote


Edit: Is there a way to clear all variables without specifying in the ()?



Custom Functions plugin has a set of ClearAll() functions.(See here)
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 users liked this post
sergio 3/20/2025 4:38:00 PM
  • New Posts New Posts
  • No New Posts No New Posts