Assign Description to Variable

Assign Description to Variable - Mensajes

#1 Publicado: 24/10/2022 13:30:58
Arie

Arie

94 me gusta en 285 mensajes.

Grupo: 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
Archivo no encontrado.Archivo no encontrado.
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#2 Publicado: 24/10/2022 14:50:41
churichuro

churichuro

29 me gusta en 79 mensajes.

Grupo: 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 Publicado: 25/10/2022 6:44:38
Oscar Campo

Oscar Campo

135 me gusta en 309 mensajes.

Grupo: 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
Archivo no encontrado.Archivo no encontrado.



A matrix approach:

AssignValueAndDescription.png
AssignValueAndDescription.sm (7,5 KiB) descargado 1275 vez(es).
A 2 usuarios les gustó este mensaje
Arie 26/10/2022 9:59:00, Alvaro 26/10/2022 14:26:00
#4 Publicado: 26/10/2022 9:26:46
Arie

Arie

94 me gusta en 285 mensajes.

Grupo: 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) descargado 1322 vez(es).
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
A 1 usuarios les gustó este mensaje
⚜ Kenny Lemens, P.E. ᵂᴵ 26/10/2022 10:57:00
#5 Publicado: 26/10/2022 9:40:21
Arie

Arie

94 me gusta en 285 mensajes.

Grupo: 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

Archivo no encontrado.Archivo no encontrado.
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
A 2 usuarios les gustó este mensaje
⚜ Kenny Lemens, P.E. ᵂᴵ 26/10/2022 11:32:00, Alvaro 26/10/2022 14:29:00
#6 Publicado: 26/10/2022 10:31:42
Oscar Campo

Oscar Campo

135 me gusta en 309 mensajes.

Grupo: Moderator

Wrote

Aha! I figured it out



Great!! congrats
  • Nuevos mensajes
  • Sin mensajes nuevos