importData()

importData() - Delimiter strings bug - Сообщения

#1 Опубликовано: 22.05.2021 18:03:25
overlord

overlord

547 сообщений из 1330 понравились пользователям.

Группа: Moderator

importData() function doesn't respect the string input for any of delimiters.
Function only accepts if delimiters are 0 in SMath, string inputs are giving error to wrong file format.
Column separator should be space, decimal separator should be dot, argument separator should be semicolon in file.
All delimiter separators couldn't be read even if they are specified as strings to default values in function.

Additionally, I get that strings should be in quotes while importing to SMath but this is not productive.
If there was an option for f.sym to read non-quoted text as string it would be very good.
This option could be set as integer 2 for f.sym and eliminates to manually add quotes for strings in file.

I encountered this on linux.
In order to check if I am not wrong doing also checked on windows.
Function acts same on Both operating systems.

Regards

PS: I had to rename filename csv to txt to upload here.
Usually filetype for these files is csv.

Worksheet1.sm (2 КиБ) скачан 29 раз(а).
spreadsheet.txt (98 Б) скачан 28 раз(а).

spreadsheet.png
#2 Опубликовано: 22.05.2021 18:43:31
Andrey Ivashov

Andrey Ivashov

2269 сообщений из 3729 понравились пользователям.

Группа: Super Administrator

Thank you. Fixed.
1 пользователям понравился этот пост
overlord 22.05.2021 20:02:00
#3 Опубликовано: 17.06.2021 14:58:52
overlord

overlord

547 сообщений из 1330 понравились пользователям.

Группа: Moderator

Wrote

Thank you. Fixed.


I noticed another bug.
If you enter first row and leave last row as 0, file is read properly.
Same action is not working with column delimiters.
It expects a number, don't accept zero as last column delimiter.
Function throws a bug.

Regards

2021-06-17_20-57.png
#4 Опубликовано: 24.02.2024 00:53:15
overlord

overlord

547 сообщений из 1330 понравились пользователям.

Группа: Moderator

Wrote

I noticed another bug.
If you enter first row and leave last row as 0, file is read properly.
Same action is not working with column delimiters.
It expects a number, don't accept zero as last column delimiter.
Function throws a bug.

Regards


This has not been fixed as it seems.
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений