Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


2 Pages12>
Options
Go to last post Go to first unread
Offline barmin  
#1 Posted : 29 June 2018 14:53:06(UTC)
barmin

Rank: Newbie

Groups: Registered
Joined: 29/07/2014(UTC)
Posts: 3
Poland
Location: Silesia

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?

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline alyles  
#2 Posted : 29 June 2018 16:37:31(UTC)
alyles


Rank: Advanced Member

Groups: Registered
Joined: 23/03/2016(UTC)
Posts: 274
United States

Was thanked: 91 time(s) in 57 post(s)
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/fo...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
Offline barmin  
#3 Posted : 29 June 2018 16:42:57(UTC)
barmin

Rank: Newbie

Groups: Registered
Joined: 29/07/2014(UTC)
Posts: 3
Poland
Location: Silesia

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.
Offline alyles  
#4 Posted : 29 June 2018 17:27:39(UTC)
alyles


Rank: Advanced Member

Groups: Registered
Joined: 23/03/2016(UTC)
Posts: 274
United States

Was thanked: 91 time(s) in 57 post(s)
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.

Edited by user 29 June 2018 17:39:14(UTC)  | Reason: Not specified

Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
Offline CBG  
#5 Posted : 29 June 2018 20:33:35(UTC)
CBG


Rank: Advanced Member

Groups: Registered
Joined: 14/10/2015(UTC)
Posts: 308

Was thanked: 77 time(s) in 58 post(s)
Originally Posted by: barmin Go to Quoted Post
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 (360kb) downloaded 33 time(s).

Best Regards

Carlos
Offline barmin  
#6 Posted : 01 July 2018 19:56:27(UTC)
barmin

Rank: Newbie

Groups: Registered
Joined: 29/07/2014(UTC)
Posts: 3
Poland
Location: Silesia

Seems it's a bug then. Thanks for info.
Offline mkraska  
#7 Posted : 02 July 2018 17:07:17(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 post(s)
Can't reproduce

hallo.sm (3kb) downloaded 34 time(s).
2018-07-02 16_05_58-SMath Studio - [hallo.sm].png
hallo.zip (483kb) downloaded 28 time(s).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline alyles  
#8 Posted : 02 July 2018 17:11:51(UTC)
alyles


Rank: Advanced Member

Groups: Registered
Joined: 23/03/2016(UTC)
Posts: 274
United States

Was thanked: 91 time(s) in 57 post(s)
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
Offline CBG  
#9 Posted : 03 July 2018 04:58:56(UTC)
CBG


Rank: Advanced Member

Groups: Registered
Joined: 14/10/2015(UTC)
Posts: 308

Was thanked: 77 time(s) in 58 post(s)
Test_String_CBG_R2.png
Offline mkraska  
#10 Posted : 03 July 2018 10:58:49(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 post(s)
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://smath.com/wiki/SMath_with_Plugins.ashx
Offline omorr  
#11 Posted : 03 July 2018 12:14:27(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
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!"
Offline wb.c  
#12 Posted : 05 March 2021 21:38:37(UTC)
wb.c


Rank: Advanced Member

Groups: Registered
Joined: 02/04/2018(UTC)
Posts: 132
United States

Was thanked: 22 time(s) in 19 post(s)
So what was the end result of this topic?

Why is the ability to modify text string entries disabled in the viewer?
Offline wb.c  
#13 Posted : 12 March 2021 03:34:26(UTC)
wb.c


Rank: Advanced Member

Groups: Registered
Joined: 02/04/2018(UTC)
Posts: 132
United States

Was thanked: 22 time(s) in 19 post(s)
This issue has now been resolved in the latest update.
Offline CBG  
#14 Posted : 12 March 2021 04:55:14(UTC)
CBG


Rank: Advanced Member

Groups: Registered
Joined: 14/10/2015(UTC)
Posts: 308

Was thanked: 77 time(s) in 58 post(s)
Quote:
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
Offline wb.c  
#15 Posted : 12 March 2021 05:00:50(UTC)
wb.c


Rank: Advanced Member

Groups: Registered
Joined: 02/04/2018(UTC)
Posts: 132
United States

Was thanked: 22 time(s) in 19 post(s)
Please take a look at this topic. You will need the latest nightly build to have functionality.
Offline CBG  
#16 Posted : 12 March 2021 20:17:50(UTC)
CBG


Rank: Advanced Member

Groups: Registered
Joined: 14/10/2015(UTC)
Posts: 308

Was thanked: 77 time(s) in 58 post(s)
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
Offline Razonar  
#17 Posted : 12 March 2021 21:03:32(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Originally Posted by: CBG Go to Quoted Post
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.
Offline wb.c  
#18 Posted : 13 March 2021 04:08:51(UTC)
wb.c


Rank: Advanced Member

Groups: Registered
Joined: 02/04/2018(UTC)
Posts: 132
United States

Was thanked: 22 time(s) in 19 post(s)
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 (572kb) downloaded 9 time(s).

Good Luck!
Offline wb.c  
#19 Posted : 13 March 2021 04:12:22(UTC)
wb.c


Rank: Advanced Member

Groups: Registered
Joined: 02/04/2018(UTC)
Posts: 132
United States

Was thanked: 22 time(s) in 19 post(s)
I'm using 64bit Win10 Enterprise by the way. Maybe it matters?
thanks 1 user thanked wb.c for this useful post.
on 13/03/2021(UTC)
Offline Razonar  
#20 Posted : 13 March 2021 05:29:48(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Originally Posted by: wb.c Go to Quoted Post
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.
Users browsing this topic
2 Pages12>
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.