Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Сортировка в гриде по данным типа "01-130" #2314

Closed
gsbelarus opened this issue Jun 30, 2015 · 2 comments
Closed

Comments

@gsbelarus
Copy link
Member

Originally reported on Google Code with ID 2314

При сортировке по клику на заголовке грида по текстовому полю с данными вида 
  01-130
  02-101
  11-222
Ругается что не может привести к типу float.
Прогладел по коду, ошибка поялвляется в методе TIBCustomDataSet.SortMultiple. При сортировке
содержимое поля проверяется функцией StrConsistsofNumberChars, чтобы при наличии только
числовых значений сортировать как числа. Но данная функция и для строки "01-130" возвращает
true

Reported by flakekun on 2011-02-01 12:07:06

@gsbelarus gsbelarus self-assigned this Jun 30, 2015
@gsbelarus
Copy link
Member Author

Написать свою ф-ию StrConsistsofNumberChars. Правильную.

Reported by gs1994 on 2011-02-01 12:11:03

@gsbelarus
Copy link
Member Author

Reported by flakekun on 2011-02-01 12:33:38

  • Status changed: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant