Assign Description to Variable

Assign Description to Variable - Сообщения

#1 Опубликовано: 24.10.2022 13:30:58
Arie

Arie

93 сообщений из 285 понравились пользователям.

Группа: 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
Файл не найден.Файл не найден.
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#2 Опубликовано: 24.10.2022 14:50:41
churichuro

churichuro

28 сообщений из 79 понравились пользователям.

Группа: 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 Опубликовано: 25.10.2022 06:44:38
Oscar Campo

Oscar Campo

124 сообщений из 298 понравились пользователям.

Группа: 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
Файл не найден.Файл не найден.



A matrix approach:

AssignValueAndDescription.png
AssignValueAndDescription.sm (7 КиБ) скачан 28 раз(а).
2 пользователям понравился этот пост
Arie 26.10.2022 09:59:00, Alvaro Diaz Falconi 26.10.2022 14:26:00
#4 Опубликовано: 26.10.2022 09:26:46
Arie

Arie

93 сообщений из 285 понравились пользователям.

Группа: 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 КиБ) скачан 16 раз(а).
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
1 пользователям понравился этот пост
⚜ Kenny Lemens, P.E. ᵂᴵ 26.10.2022 10:57:00
#5 Опубликовано: 26.10.2022 09:40:21
Arie

Arie

93 сообщений из 285 понравились пользователям.

Группа: 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

Файл не найден.Файл не найден.
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
2 пользователям понравился этот пост
⚜ Kenny Lemens, P.E. ᵂᴵ 26.10.2022 11:32:00, Alvaro Diaz Falconi 26.10.2022 14:29:00
#6 Опубликовано: 26.10.2022 10:31:42
Oscar Campo

Oscar Campo

124 сообщений из 298 понравились пользователям.

Группа: Moderator

Wrote

Aha! I figured it out



Great!! congrats
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений