Problem with string wariable

Problem with string wariable - Copy/paste from windows to SMath - 消息

#1 已发布: 2019/2/26 11:47:01
Farja

Farja

1个赞,共7个帖子。

组: User

I was having problems importing an excel file, thought it was a problem with the extension, but some sheets continued to work. The problem was due to the name of the file used as argument to the plugin.

The only difference between the strings shown below, is that in the first case the name was copied from a windows explorer window and pasted between ""(lazy me ), and the other was typed directly.

2019-02-26 11_38_48-Window.png

Both look the same, but SMath stores them differently, and when passed as an argument to the plugin, it fails.

Var_String1:
      <math>
        <input>
          <e type="operand">var_string1</e>
        </input>
        <result action="numeric">
          <e type="operand" style="string">M2U4\005F\m03\005F\2\005F\Error\002E\xlsx</e>
        </result>
      </math>

Var String2:
      <math>
        <input>
          <e type="operand">var_string2</e>
          <e type="operand" style="string">M2U4_m03_2_Error.xlsx</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>

Error ST.sm (4.35 KiB)已下载 1368 次。



Excel plugin:
https://en.smath.info/fo...yaf_postst4375_Plugin---EXCEL--2003--I-O-with-recalculation-and-export-to-PNG.aspx

1位用户喜欢此帖子
Davide Carpi 2019/2/26 15:39:00
#2 已发布: 2019/2/26 15:53:54
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

XlsxImportExport plugin updated; please let me know if it works properly so I'll update similar plugins.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 已发布: 2019/2/26 16:57:51
Farja

Farja

1个赞,共7个帖子。

组: User

Thanks Davide, i was using the Excel I/O plugin (EXCEL (2003+) I/O with recalculation and PNG export - 1.99.6849.42653), but the problem also applies to XlsxImportExport plugin.

The updated XlsxImportExport plugin (1.3.6996.39330) work properly with the same problematic strings (space, underscore, dot, etc). So i will switch to this one.


Best regards,
Farja
#4 已发布: 2019/2/26 20:57:46
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

Wrote

i was using the Excel I/O plugin (EXCEL (2003 ) I/O with recalculation and PNG export



Updated.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#5 已发布: 2019/2/28 14:39:48
Farja

Farja

1个赞,共7个帖子。

组: User

Thanks Davide,

Both plugins work fine now.

Best regards,
Farja
  • 有新帖
  • 无新帖