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

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline mkraska  
#1 Posted : 22 July 2023 17:44:10(UTC)
mkraska


Rank: Advanced Member

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

Was thanked: 1126 time(s) in 723 post(s)
The function DocumentDirectory() works fine when called at the canvas.

When called in a function body, then I get an error message, saying that the object pointer was not set to an object instance.

BTW, the GUI is set to english, SMath has been closed and re-opened. Still the error message is in german. Sorry for that.

fullname.sm (5kb) downloaded 8 time(s).
fullname.png

System information:
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx

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

Offline Razonar  
#2 Posted : 23 July 2023 03:08:08(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: mkraska Go to Quoted Post
The function DocumentDirectory() works fine when called at the canvas. ...


Hi Martin. The issue is because the line() statement. Without it DocumentDirectory() and other functions works fine.

As a workaround for the case that you need to use it with inside a line statement, and given that DocumentDirectory() just use the same argument "" always, you can save it into a constant, but could have others issues, like using that with include().

fullname.sm (5kb) downloaded 13 time(s).

Clipboard01.png

Best regards.
Alvaro.
Users browsing this topic
Guest
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.