Assign Description to Variable

Assign Description to Variable - Poruke

#1 Objavljeno: 24. 10. 2022. 13:30:58
Arie

Arie

94 svidjanja u 285 postova.

Grupa: User

Is there a way to assign a description to a variable dynamically?

I am defining variable names dynamically. I would like to also assign a description with each variable name.
Is this possible?

Thanks
Fajl nije pronađen.Fajl nije pronađen.
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#2 Objavljeno: 24. 10. 2022. 14:50:41
churichuro

churichuro

29 svidjanja u 79 postova.

Grupa: User

I think not, there is the inverse function to what you are looking for...

description("VAR" ) that returns the description of the VAR variable

but it can't be done
description("VAR" ) := "new description"

it's a nice feature to ask for to be implemented in this bidirectional way.
#3 Objavljeno: 25. 10. 2022. 06:44:38
Oscar Campo

Oscar Campo

135 svidjanja u 309 postova.

Grupa: Moderator

Wrote

Is there a way to assign a description to a variable dynamically?

I am defining variable names dynamically. I would like to also assign a description with each variable name.
Is this possible?

Thanks
Fajl nije pronađen.Fajl nije pronađen.



A matrix approach:

AssignValueAndDescription.png
AssignValueAndDescription.sm (7,5 KiB) preuzeto 1311 put(ova).
2 korisnika je svidelo ovu objavu
Arie 26. 10. 2022. 09:59:00, Alvaro 26. 10. 2022. 14:26:00
#4 Objavljeno: 26. 10. 2022. 09:26:46
Arie

Arie

94 svidjanja u 285 postova.

Grupa: User

I had another idea using line function. But i'm not sure how to do it programatically... Any Ideas? Is it even possible?

Untitled.png
Worksheet8_alternateIdea.sm (22,9 KiB) preuzeto 1353 put(ova).
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
1 korisnika je svidelo ovu objavu
⚜ Kenny Lemens, P.E. ᵂᴵ 26. 10. 2022. 10:57:00
#5 Objavljeno: 26. 10. 2022. 09:40:21
Arie

Arie

94 svidjanja u 285 postova.

Grupa: User

Aha! I figured it out

Untitled.png

I'm pretty happy with this solution.
Here's my updated file for a reference:
Untitled.png

Fajl nije pronađen.Fajl nije pronađen.
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
2 korisnika je svidelo ovu objavu
⚜ Kenny Lemens, P.E. ᵂᴵ 26. 10. 2022. 11:32:00, Alvaro 26. 10. 2022. 14:29:00
#6 Objavljeno: 26. 10. 2022. 10:31:42
Oscar Campo

Oscar Campo

135 svidjanja u 309 postova.

Grupa: Moderator

Wrote

Aha! I figured it out



Great!! congrats
  • Novi postovi
  • Nema novih postova