How to display string element of the matrix in Smath Viewer? - Messages
#1 Posted: 6/29/2018 8:53:06 AM
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?
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 Posted: 6/29/2018 10:37:31 AM
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.
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 Posted: 6/29/2018 10:42:57 AM
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.
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 Posted: 6/29/2018 11:27:39 AM
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.
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 Posted: 6/29/2018 2:33:35 PM
WroteHello,
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.zip (359 KiB) downloaded 60 time(s).
Best Regards
Carlos
#6 Posted: 7/1/2018 1:56:27 PM
Seems it's a bug then. Thanks for info.
#7 Posted: 7/2/2018 11:07:17 AM
#8 Posted: 7/2/2018 11:11:51 AM
Martin,
Once the Viewer is running try to change the value of Hallo and notice if it doesn't update in the second box.
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
#10 Posted: 7/3/2018 4:58:49 AM
For me it works. Yet I have to press enter to forward the changes in the input box.
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#11 Posted: 7/3/2018 6:14:27 AM
#12 Posted: 3/5/2021 3:38:37 PM
So what was the end result of this topic?
Why is the ability to modify text string entries disabled in the viewer?
Why is the ability to modify text string entries disabled in the viewer?
#13 Posted: 3/11/2021 9:34:26 PM
This issue has now been resolved in the latest update.
#14 Posted: 3/11/2021 10:55:14 PM
QuoteThis 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 Posted: 3/11/2021 11:00:50 PM
Please take a look at this topic. You will need the latest nightly build to have functionality.
#16 Posted: 3/12/2021 2:17:50 PM
#17 Posted: 3/12/2021 3:03:32 PM
WroteI did a test with the latest version of Smath Studio and the Viewer and it does not work
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 Posted: 3/12/2021 10:08:51 PM
Seems to be working just fine for me.


99.7739.40423_Test_exe.zip (571 KiB) downloaded 33 time(s).
Good Luck!
99.7739.40423_Test_exe.zip (571 KiB) downloaded 33 time(s).
Good Luck!
#19 Posted: 3/12/2021 10:12:22 PM
I'm using 64bit Win10 Enterprise by the way. Maybe it matters?
1 users liked this post
Alvaro Diaz Falconi 3/12/2021 11:30:00 PM
#20 Posted: 3/12/2021 11:29:48 PM
WroteI'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.
-
New Posts
-
No New Posts