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

Notification

Icon
Error

Login


8 Pages<12345>»
Options
Go to last post Go to first unread
Offline uni  
#41 Posted : 17 October 2014 18:49:23(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
I was thinking, it seems that it can be implemented for special cases. I'll try to add such possibility. But still, in general case, only Andrey can do it.

In private conversation, he did not approve of the idea to use the functions of the program for calculations in the background (as I do). In this case, you can use the modules of the program separately from the main program. I think it would violate the license agreement.
Russia ☭ forever
Viacheslav N. Mezentsev
Offline brotjob  
#42 Posted : 18 October 2014 19:02:10(UTC)
brotjob


Rank: Advanced Member

Groups: Registered
Joined: 18/09/2014(UTC)
Posts: 71
Switzerland

Was thanked: 7 time(s) in 7 post(s)
Why don't you just help Andrey to implement it the proper way? Doesn't he accept any help?
Offline uni  
#43 Posted : 20 October 2014 17:48:23(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Updated. Added support for dynamic definitions. Experimental build.

Originally Posted by: brotjob Go to Quoted Post
Why don't you just help Andrey to implement it the proper way? Doesn't he accept any help?

It's not so easy. I've no access to source code.

Quote:
In cases where you have complex conditions and you want to define many variables in if statements it would not work. Also it does not work for loops for, while.

Try now.
Russia ☭ forever
Viacheslav N. Mezentsev
Offline brotjob  
#44 Posted : 22 October 2014 11:10:18(UTC)
brotjob


Rank: Advanced Member

Groups: Registered
Joined: 18/09/2014(UTC)
Posts: 71
Switzerland

Was thanked: 7 time(s) in 7 post(s)
Originally Posted by: uni Go to Quoted Post
Updated. Added support for dynamic definitions. Experimental build.


Thank you!

Originally Posted by: uni Go to Quoted Post
It's not so easy. I've no access to source code.


It is easy. He could send you the code in a simple email or give you access to some repository. It's a social issue.

Originally Posted by: uni Go to Quoted Post
Quote:
In cases where you have complex conditions and you want to define many variables in if statements it would not work. Also it does not work for loops for, while.

Try now.


I tried. It works if there are a few variables. But you have to open and close Smath Studio several times until you can access all the variables.

In my big file I have around 40 variables. It seems that I can access only the first ~15 of them irrespective of whether they are statically or dynamically defined.
Offline uni  
#45 Posted : 22 October 2014 18:00:02(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Can I see the file? Or some example.

The current version does not support complex definitions that use functions from third-party plug-ins.
External dependences in the included file is not used.
Only Andrey knows how to include file correctly. This information is not documented.
Russia ☭ forever
Viacheslav N. Mezentsev
Offline brotjob  
#46 Posted : 22 October 2014 21:36:47(UTC)
brotjob


Rank: Advanced Member

Groups: Registered
Joined: 18/09/2014(UTC)
Posts: 71
Switzerland

Was thanked: 7 time(s) in 7 post(s)
actually I would prefer spending time with my son than debugging your code.

  1. open a new sheet, type a:=1
  2. save it as b.sm
  3. open another sheet, type include("b.sm" )
  4. save it as c.sm
  5. now include() should get a black frame but it remains framed red, error
  6. switch back to b.sm. Despite you have saved it and made no change, you will see an asterisk in the title bar which indicates a change. Save the file again
  7. Now switch back to c.sm and you should see a result.


This is time consuming and not logical.

Another example:

  1. Add another line b:=2 in b.sm
  2. change a to 0, save
  3. switch to c.sm. You will see the new value of a, but b will not be present
  4. in order to be able to use b in c.sm you need to switch back to b.sm and save it again.


If you have 40 variables you switch and save many many times...

Edited by moderator 23 October 2014 06:13:33(UTC)  | Reason: Not specified

Offline uni  
#47 Posted : 23 October 2014 07:31:08(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
This is strange behavior. Your example works fine for me. Are you using the latest version (include - 0.1.5406.38586 and SMath Studio - 0.97.5346)?
Russia ☭ forever
Viacheslav N. Mezentsev
Offline uni  
#48 Posted : 25 October 2014 19:13:44(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Quote:
Despite you have saved it and made no change, you will see an asterisk in the title bar which indicates a change. Save the file again

I think this is a bug but not mine.
Russia ☭ forever
Viacheslav N. Mezentsev
Offline brotjob  
#49 Posted : 27 October 2014 19:03:52(UTC)
brotjob


Rank: Advanced Member

Groups: Registered
Joined: 18/09/2014(UTC)
Posts: 71
Switzerland

Was thanked: 7 time(s) in 7 post(s)
Filed in the bugtracker as Files are marked changed without change
thanks 1 user thanked brotjob for this useful post.
on 27/10/2014(UTC)
Offline brotjob  
#50 Posted : 28 October 2014 09:57:52(UTC)
brotjob


Rank: Advanced Member

Groups: Registered
Joined: 18/09/2014(UTC)
Posts: 71
Switzerland

Was thanked: 7 time(s) in 7 post(s)
I am finally able to create a minimal example that reproduces the bug, see attachment. Include() seems not to work with brackets.
brotjob attached the following image(s):
include_bug.png
thanks 1 user thanked brotjob for this useful post.
on 28/10/2014(UTC)
Offline uni  
#51 Posted : 28 October 2014 13:10:24(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Originally Posted by: brotjob Go to Quoted Post
I am finally able to create a minimal example that reproduces the bug, see attachment. Include() seems not to work with brackets.


Updated. Bug fixed. Brackets now supported.

Russia ☭ forever
Viacheslav N. Mezentsev
thanks 1 user thanked uni for this useful post.
on 28/10/2014(UTC)
Offline brotjob  
#52 Posted : 28 October 2014 15:44:38(UTC)
brotjob


Rank: Advanced Member

Groups: Registered
Joined: 18/09/2014(UTC)
Posts: 71
Switzerland

Was thanked: 7 time(s) in 7 post(s)
My big file works now! It found many more variables, all the ones that used brackets. However, when you divide a big file into several smaller files by copy-paste and include() the units get messed up. I filed the new bug units messed up during copy-paste.
thanks 1 user thanked brotjob for this useful post.
on 28/10/2014(UTC)
Offline brotjob  
#53 Posted : 30 October 2014 10:24:48(UTC)
brotjob


Rank: Advanced Member

Groups: Registered
Joined: 18/09/2014(UTC)
Posts: 71
Switzerland

Was thanked: 7 time(s) in 7 post(s)
I would like to use cascading dependencies. See the attached example. In file c.sm I cannot access all the variables I have in b.sm. Nevertheless I have the influence of a.sm in c.sm through the variable b. This is strange to me. Is it a wanted behavior? Why?

Of course I could include a.sm in c.sm again. But I could also include another file d.sm in c.sm which contains a:=2. I would then end up with a=2 and b=2 despite b being defined as 2*a...

I think there are two ways of implementing this properly:

  1. You can acess all the variables like a class. I.e c:=include( "a.sm" ) ... c.a=1
  2. Or the variables are universally accessible in all files directly, resulting in a=1 in c.sm

Edited by user 30 October 2014 14:48:41(UTC)  | Reason: Not specified

brotjob attached the following image(s):
include_cascading.png
thanks 1 user thanked brotjob for this useful post.
on 30/10/2014(UTC)
Offline uni  
#54 Posted : 30 October 2014 12:46:53(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
There is a log file in the folder with the plugin (it appears if the function doesn't work.). The function can't find the file in the specified path. As for the rest - it's strange behavior. I'll see what's wrong.
Russia ☭ forever
Viacheslav N. Mezentsev
Offline uni  
#55 Posted : 30 October 2014 19:01:46(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Updated. Fixed bug with cascading dependencies.
Russia ☭ forever
Viacheslav N. Mezentsev
Offline brotjob  
#56 Posted : 31 October 2014 18:26:18(UTC)
brotjob


Rank: Advanced Member

Groups: Registered
Joined: 18/09/2014(UTC)
Posts: 71
Switzerland

Was thanked: 7 time(s) in 7 post(s)
Thanks, now it works in the manner that all variables are accessible in all the following sheets. It is slow however.
Offline Owndante  
#57 Posted : 01 December 2014 13:36:15(UTC)
Owndante


Rank: Member

Groups: Registered
Joined: 28/11/2014(UTC)
Posts: 15

Was thanked: 1 time(s) in 1 post(s)
It looks like there is a bug if you include Areas in the source file.
If your data is included in more than 2 Areas, the plugin will send only the content of the first one.
Owndante attached the following image(s):
include.jpg
thanks 1 user thanked Owndante for this useful post.
on 01/12/2014(UTC)
Offline uni  
#58 Posted : 01 December 2014 19:26:53(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
I think this is not only my bug. I ask Andrey about it.
Russia ☭ forever
Viacheslav N. Mezentsev
Offline uni  
#59 Posted : 07 December 2014 20:15:07(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Originally Posted by: Owndante Go to Quoted Post
It looks like there is a bug if you include Areas in the source file.
If your data is included in more than 2 Areas, the plugin will send only the content of the first one.

We found the problem. This issue is related to saving the file. Andrey will make the correction in the next build.

Russia ☭ forever
Viacheslav N. Mezentsev
Offline Owndante  
#60 Posted : 16 December 2014 13:02:15(UTC)
Owndante


Rank: Member

Groups: Registered
Joined: 28/11/2014(UTC)
Posts: 15

Was thanked: 1 time(s) in 1 post(s)
Hello!

It seems the includ does not send the result of a selected item (ex. Combobox, Radiobutton).

Regards,
Szabi
File Attachment(s):
ComboboxIncludeTest.rar (15kb) downloaded 47 time(s).
Users browsing this topic
Guest
Similar Topics
Display formula stored in "Included" SMath file (Questions)
by faruk 10/03/2024 23:36:28(UTC)
include files @ startup (Questions)
by charlamb 10/05/2023 23:44:05(UTC)
Adidas include guaranteed with the 12 months (Bugs & Problems)
by Guest 11/12/2020 07:02:55(UTC)
include function issues (Questions)
by jrufener 01/06/2019 21:44:47(UTC)
[include plugin] missing LinqBridge.dll error in SMath Viewer executables (Bugs & Problems)
by resist 24/11/2017 18:07:37(UTC)
Include [User Program Function] (Feature Requests)
by Jean Giraud 16/04/2016 15:29:14(UTC)
"include" plugin: default directory setting (Feature Requests)
by mikekaganski 04/04/2016 07:19:58(UTC)
Include and Combobox Region (Questions)
by RFreund 01/03/2016 02:18:21(UTC)
include does not seem to work anymore (Bugs & Problems)
by Tinu 23/06/2014 09:56:03(UTC)
Even so Kobe Shoes includes by no means offered " up " their particular method to Nike Air condition (Questions)
by gladys 07/06/2014 05:27:07(UTC)
Include Hook Sections (Feature Requests)
by sublim21 29/05/2013 21:23:33(UTC)
Include ksi and ksf in next release (Feature Requests)
by TheWizEd 17/07/2010 22:42:11(UTC)
Include function (Feature Requests)
by LordMike 24/10/2009 05:15:45(UTC)
8 Pages<12345>»
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.