1 страниц (2 вхождений)
DocumentDirectory() fails to work in function - Сообщения
#1 Опубликовано: 22.07.2023 11:44:10
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 (4 КиБ) скачан 27 раз(а).

System information:
SMath Studio: SMath Studio Desktop 1.0.8348.30405, 64-bit
OS: Microsoft Windows NT 10.0.19045.0; Windows 10 Pro, 64-bit
Screen: 1920x1080 px, 96x96 dpi, 96 GP.CDPI
Localization: language=ENG; dec.symbol=; arg.separator=; OS dec.symbol=; OS arg.separator=; OS d.g.separator=; units=eng;
Framework: CLR 4.0.30319.42000
installed versions:
v2.0.50727 2.0.50727.4927 SP2
v3.0 3.0.30729.4926 SP2
v3.5 3.5.30729.4926 SP1
v4
Client 4.8.09037
Full 4.8.09037
v4.0
Client 4.0.0.0
Plugins:
- [AppDir] AreaRegion - 1.11.8348.30405
- [AppDir] HTMLFileType - 1.14.8348.30405
- [AppDir] ImageFileType - 1.11.8348.30405
- [AppDir] MathRegion - 1.11.8348.30405
- [AppDir] PictureRegion - 1.10.8348.30405
- [AppDir] PlotRegion - 1.11.8348.30405
- [AppDir] SMathFileType - 1.11.8348.30405
- [AppDir] SpecialFunctions - 1.12.8348.30405
- [AppDir] SpecialFunctions - 1.12.8348.30405
- [AppDir] StandardToolboxButtons - 1.1.8348.30405
- [AppDir] TextRegion - 1.11.8348.30405
- [AppDir] ViewerFileType - 1.1.8348.30405
- [UserDir] 3D Plot Region (Chart3DLib) - 0.1.7806.5325
- [UserDir] 3D Plot Region (Chart3DLib) - 0.1.7806.5325
- [UserDir] ALGLIB® - numerical analysis library - 1.0.8025.20709
- [UserDir] Checkbox Region - 1.0.7806.5368
- [UserDir] CheckBoxList Region - 1.0.7806.5399
- [UserDir] Combobox Region - 0.1.7806.5423
- [UserDir] ComboBoxList Region - 1.0.8302.30100
- [UserDir] Conditionally Formatted Label - 1.0.8138.35464
- [UserDir] CoolProp Wrapper - 6.4.8214.13502
- [UserDir] Currency Units - 1.1.8474.25599
- [UserDir] Custom Functions - 1.1.8051.30522
- [UserDir] Custom Glyphs - 1.1.7783.42782
- [UserDir] Data Exchange - 1.1.7813.24580
- [UserDir] Development Tools - 1.1.7490.41956
- [UserDir] DISLIN 11.5 - 0.2.8187.36790
- [UserDir] DotNumerics - 1.1.8269.16536
- [UserDir] EXCEL (2003+) I/O with recalculation and PNG export - 2.1.8225.33551
- [UserDir] Excel Files Plugin - 1.3.7832.3161
- [UserDir] FFTPACK - 1.1.7563.3712
- [UserDir] FIR Filter Design - 1.0.8187.41094
- [UserDir] GPC Wrapper - 1.0.7613.4493
- [UserDir] Hyperlink Region - 1.0.7806.5225
- [UserDir] Image Region - 2.99.7818.2866
- [UserDir] include - 0.2.8085.37792
- [UserDir] Maple Tools - 1.1.8517.16356
- [UserDir] Maple Tools - 1.1.8517.16356
- [UserDir] Maple Tools - 1.1.8517.16356
- [UserDir] Mathcad Custom Functions - 1.1.8035.3236
- [UserDir] Mathcad File Access Functions - 1.0.8011.30679
- [UserDir] Mathcad Toolbox - 0.4.8520.34563
- [UserDir] Mathcad Toolbox - 0.4.8520.34563
- [UserDir] Matlab Runtime Library - 1.1.8044.8489
- [UserDir] MatrixExtensions - 1.0.8302.28555
- [UserDir] MaximaPlugin - 1.98.8597.3789
- [UserDir] Modeller Region - 1.0.7806.4160
- [UserDir] Nonlinear Solvers - 1.1.7097.23301
- [UserDir] Numeric Up-Down Region - 1.0.8034.3198
- [UserDir] Octave C++ Math Library - 1.0.7871.39565
- [UserDir] PDF Files Plugin - 1.0.7097.27694
- [UserDir] Pie Chart Region - 1.0.7803.4807
- [UserDir] RadioButtonList Region - 1.0.8249.15837
- [UserDir] Run - 0.2.7786.3193
- [UserDir] Slider Region - 1.0.8026.22557
- [UserDir] Snapshot Region - 1.0.7806.25196
- [UserDir] Statistical Tools - 1.0.6824.32561
- [UserDir] Table Region - 0.3.8209.20465
- [UserDir] Text Region Utilities - 0.4.7802.40621
- [UserDir] Writer Region - 0.23.8034.36139
- [UserDir] XlsxImportExport - 1.3.7845.24796
- [UserDir] X-Y Plot Region (JXCharts) - 0.2.8209.38826
- [UserDir] X-Y Plot Region (JXCharts) - 0.2.8209.38826
- [UserDir] ZedGraph Region (ZedGraph) - 0.1.7806.5613
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 (4 КиБ) скачан 27 раз(а).
System information:
SMath Studio: SMath Studio Desktop 1.0.8348.30405, 64-bit
OS: Microsoft Windows NT 10.0.19045.0; Windows 10 Pro, 64-bit
Screen: 1920x1080 px, 96x96 dpi, 96 GP.CDPI
Localization: language=ENG; dec.symbol=
Framework: CLR 4.0.30319.42000
installed versions:
v2.0.50727 2.0.50727.4927 SP2
v3.0 3.0.30729.4926 SP2
v3.5 3.5.30729.4926 SP1
v4
Client 4.8.09037
Full 4.8.09037
v4.0
Client 4.0.0.0
Plugins:
- [AppDir] AreaRegion - 1.11.8348.30405
- [AppDir] HTMLFileType - 1.14.8348.30405
- [AppDir] ImageFileType - 1.11.8348.30405
- [AppDir] MathRegion - 1.11.8348.30405
- [AppDir] PictureRegion - 1.10.8348.30405
- [AppDir] PlotRegion - 1.11.8348.30405
- [AppDir] SMathFileType - 1.11.8348.30405
- [AppDir] SpecialFunctions - 1.12.8348.30405
- [AppDir] SpecialFunctions - 1.12.8348.30405
- [AppDir] StandardToolboxButtons - 1.1.8348.30405
- [AppDir] TextRegion - 1.11.8348.30405
- [AppDir] ViewerFileType - 1.1.8348.30405
- [UserDir] 3D Plot Region (Chart3DLib) - 0.1.7806.5325
- [UserDir] 3D Plot Region (Chart3DLib) - 0.1.7806.5325
- [UserDir] ALGLIB® - numerical analysis library - 1.0.8025.20709
- [UserDir] Checkbox Region - 1.0.7806.5368
- [UserDir] CheckBoxList Region - 1.0.7806.5399
- [UserDir] Combobox Region - 0.1.7806.5423
- [UserDir] ComboBoxList Region - 1.0.8302.30100
- [UserDir] Conditionally Formatted Label - 1.0.8138.35464
- [UserDir] CoolProp Wrapper - 6.4.8214.13502
- [UserDir] Currency Units - 1.1.8474.25599
- [UserDir] Custom Functions - 1.1.8051.30522
- [UserDir] Custom Glyphs - 1.1.7783.42782
- [UserDir] Data Exchange - 1.1.7813.24580
- [UserDir] Development Tools - 1.1.7490.41956
- [UserDir] DISLIN 11.5 - 0.2.8187.36790
- [UserDir] DotNumerics - 1.1.8269.16536
- [UserDir] EXCEL (2003+) I/O with recalculation and PNG export - 2.1.8225.33551
- [UserDir] Excel Files Plugin - 1.3.7832.3161
- [UserDir] FFTPACK - 1.1.7563.3712
- [UserDir] FIR Filter Design - 1.0.8187.41094
- [UserDir] GPC Wrapper - 1.0.7613.4493
- [UserDir] Hyperlink Region - 1.0.7806.5225
- [UserDir] Image Region - 2.99.7818.2866
- [UserDir] include - 0.2.8085.37792
- [UserDir] Maple Tools - 1.1.8517.16356
- [UserDir] Maple Tools - 1.1.8517.16356
- [UserDir] Maple Tools - 1.1.8517.16356
- [UserDir] Mathcad Custom Functions - 1.1.8035.3236
- [UserDir] Mathcad File Access Functions - 1.0.8011.30679
- [UserDir] Mathcad Toolbox - 0.4.8520.34563
- [UserDir] Mathcad Toolbox - 0.4.8520.34563
- [UserDir] Matlab Runtime Library - 1.1.8044.8489
- [UserDir] MatrixExtensions - 1.0.8302.28555
- [UserDir] MaximaPlugin - 1.98.8597.3789
- [UserDir] Modeller Region - 1.0.7806.4160
- [UserDir] Nonlinear Solvers - 1.1.7097.23301
- [UserDir] Numeric Up-Down Region - 1.0.8034.3198
- [UserDir] Octave C++ Math Library - 1.0.7871.39565
- [UserDir] PDF Files Plugin - 1.0.7097.27694
- [UserDir] Pie Chart Region - 1.0.7803.4807
- [UserDir] RadioButtonList Region - 1.0.8249.15837
- [UserDir] Run - 0.2.7786.3193
- [UserDir] Slider Region - 1.0.8026.22557
- [UserDir] Snapshot Region - 1.0.7806.25196
- [UserDir] Statistical Tools - 1.0.6824.32561
- [UserDir] Table Region - 0.3.8209.20465
- [UserDir] Text Region Utilities - 0.4.7802.40621
- [UserDir] Writer Region - 0.23.8034.36139
- [UserDir] XlsxImportExport - 1.3.7845.24796
- [UserDir] X-Y Plot Region (JXCharts) - 0.2.8209.38826
- [UserDir] X-Y Plot Region (JXCharts) - 0.2.8209.38826
- [UserDir] ZedGraph Region (ZedGraph) - 0.1.7806.5613
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#2 Опубликовано: 22.07.2023 21:08:08
WroteThe 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 (4 КиБ) скачан 40 раз(а).
Best regards.
Alvaro.
1 страниц (2 вхождений)
-
Новые сообщения
-
Нет новых сообщений