How to display string element of the matrix in Smath Viewer?

How to display string element of the matrix in Smath Viewer? - Mensajes

#1 Publicado: 29/6/2018 8:53:06
Bartlomiej

Bartlomiej

0 me gusta en 3 mensajes.

Grupo: User

Hello,

I have a question if it's possible to display the string part of a matrix in *.exe file created from a Smath file?


Screenshot of issue

Tried the var2string function, but after changing the string value via exe file, it reads function argument name (a) instead of it's value.

Is there some kind of workaround for this issue?
#2 Publicado: 29/6/2018 10:37:31
Arie

Arie

94 me gusta en 285 mensajes.

Grupo: User

It would help if you post the original .sm file.

I'm not exactly sure what you are trying to do. Are you trying to assign a value to a variable name defined in a?
If so you can do something like this: https://en.smath.info/forum/yaf_postsm36117_New-variable-programmatically--also--Solving-under-over-defined-system-of-linear-eqautions.aspx#post36117

As far as getting that dynamically created variable name to display on the left as an actual variable name, I'm not sure if that's possible.
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#3 Publicado: 29/6/2018 10:42:57
Bartlomiej

Bartlomiej

0 me gusta en 3 mensajes.

Grupo: User

In smath it's defined as:

a:="sample string"

a="sample string"


And if I change the string, sheet recalculates and shows a value as the new string. I wanted to achieve this functionality in smath viewer in exe file for creating additional info page on my docs, like project name and so on.
#4 Publicado: 29/6/2018 11:27:39
Arie

Arie

94 me gusta en 285 mensajes.

Grupo: User

Make sure you hit enter/return key after entering value.

Edit: You may have found a bug. This kind of functionality works great with numeric values but not with strings. I've tried with different optimizations as well to no avail.
I'm not sure it's ever worked. I now SMath Viewer is still a work in progress so feel free to add bug entry.
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#5 Publicado: 29/6/2018 14:33:35
CBG

CBG

78 me gusta en 312 mensajes.

Grupo: User

Wrote

Hello,

I have a question if it's possible to display the string part of a matrix in *.exe file created from a Smath file?


Screenshot of issue

Tried the var2string function, but after changing the string value via exe file, it reads function argument name (a) instead of it's value.

Is there some kind of workaround for this issue?





Hello Barmin


The function you are looking for was previously available in previous versions of smath, such as version 5737.
I do not know why they disabled it. Here I put an example in that version.

Test_String_5737.png

Test_string_5737.zip (359,64 KiB) descargado 434 vez(es).

Best Regards

Carlos
#6 Publicado: 1/7/2018 13:56:27
Bartlomiej

Bartlomiej

0 me gusta en 3 mensajes.

Grupo: User

Seems it's a bug then. Thanks for info.
#7 Publicado: 2/7/2018 11:07:17
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: Moderator

Can't reproduce

hallo.sm (2,75 KiB) descargado 1170 vez(es).
2018-07-02 16_05_58-SMath Studio - [hallo.sm].png
hallo.zip (482,23 KiB) descargado 415 vez(es).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#8 Publicado: 2/7/2018 11:11:51
Arie

Arie

94 me gusta en 285 mensajes.

Grupo: User

Martin,

Once the Viewer is running try to change the value of Hallo and notice if it doesn't update in the second box.

Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#9 Publicado: 2/7/2018 22:58:56
CBG

CBG

78 me gusta en 312 mensajes.

Grupo: User

Test_String_CBG_R2.png
#10 Publicado: 3/7/2018 4:58:49
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: Moderator

For me it works. Yet I have to press enter to forward the changes in the input box.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#11 Publicado: 3/7/2018 6:14:27
Radovan Omorjan

Radovan Omorjan

325 me gusta y 1 no me gusta en 2.052 mensajes.

Grupo: Moderator

For me it will change the numerical variable but not the string one (with return pressing, of course).

before
before.GIF

after
after.GIF

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#12 Publicado: 5/3/2021 15:38:37
⠀

⠀

26 me gusta en 155 mensajes.

Grupo: User

So what was the end result of this topic?

Why is the ability to modify text string entries disabled in the viewer?
#13 Publicado: 11/3/2021 21:34:26
⠀

⠀

26 me gusta en 155 mensajes.

Grupo: User

This issue has now been resolved in the latest update.
#14 Publicado: 11/3/2021 22:55:14
CBG

CBG

78 me gusta en 312 mensajes.

Grupo: User

Citar

This issue has now been resolved in the latest update.



You are right, the text change in the variables still does not work.

Best Regards

Carlos
#15 Publicado: 11/3/2021 23:00:50
⠀

⠀

26 me gusta en 155 mensajes.

Grupo: User

Please take a look at this topic. You will need the latest nightly build to have functionality.
#16 Publicado: 12/3/2021 14:17:50
CBG

CBG

78 me gusta en 312 mensajes.

Grupo: User

I did a test with the latest version of Smath Studio and the Viewer and it does not work

Text_Change_fail.png

Best Regards

Carlos
#17 Publicado: 12/3/2021 15:03:32
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: User

Wrote

I did a test with the latest version of Smath Studio and the Viewer and it does not work

Text_Change_fail.png

Best Regards

Carlos



Hi. Carlos it's right. I guess that there are an issue with the automatic update within the nightly build which seems to be now appVersion(4)="0.99.7739.40423"@# but previously I have appVersion(4)="0.99.7739.41xxx "@# or something like that.

Best regards.
Alvaro.
#18 Publicado: 12/3/2021 22:08:51
⠀

⠀

26 me gusta en 155 mensajes.

Grupo: User

Seems to be working just fine for me.

2021-03-12 20_04_14.png
2021-03-12 20_04_39.png

99.7739.40423_Test_exe.zip (571,28 KiB) descargado 388 vez(es).

Good Luck!
#19 Publicado: 12/3/2021 22:12:22
⠀

⠀

26 me gusta en 155 mensajes.

Grupo: User

I'm using 64bit Win10 Enterprise by the way. Maybe it matters?
A 1 usuarios les gustó este mensaje
Alvaro 12/3/2021 23:30:00
#20 Publicado: 12/3/2021 23:29:48
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: User

Wrote

I'm using 64bit Win10 Enterprise by the way. Maybe it matters?



Me too, but 32 bits. I'm reinstall SMath and now works fine.

Thanks.

Best regards.
Alvaro.
  • Nuevos mensajes
  • Sin mensajes nuevos