![]() |
|
Модераторы: Poseidon, Snowy, bems, MetalFan |
![]()
|
|
| huismori |
|
|||
|
Шустрый ![]() Профиль Группа: Участник Сообщений: 125 Регистрация: 19.1.2010 Репутация: нет Всего: нет |
i want to split text in richedit after every 500 characters, is it possible ?
|
|||
|
||||
| muratboy31 |
|
|||
|
Бывалый ![]() Профиль Группа: Участник Сообщений: 230 Регистрация: 7.1.2010 Репутация: нет Всего: нет |
i saw something like that on the net and i tried to find it again but i could find it... sorry !!!
Это сообщение отредактировал(а) muratboy31 - 3.12.2010, 15:23 |
|||
|
||||
| huismori |
|
|||
|
Шустрый ![]() Профиль Группа: Участник Сообщений: 125 Регистрация: 19.1.2010 Репутация: нет Всего: нет |
it would be good if you could have found it again...
i also searched on the net but no luck... what i want to do is; split the text in richedit after every 500 or 1000 characters and save to the txt files... i dont know if it is possible also !!! |
|||
|
||||
| huismori |
|
|||
|
Шустрый ![]() Профиль Группа: Участник Сообщений: 125 Регистрация: 19.1.2010 Репутация: нет Всего: нет |
i found something but it doesnt really do what i want !!!
how can i work with this code !!!
Это сообщение отредактировал(а) huismori - 3.12.2010, 16:47 |
|||
|
||||
| huismori |
|
|||
|
Шустрый ![]() Профиль Группа: Участник Сообщений: 125 Регистрация: 19.1.2010 Репутация: нет Всего: нет |
ok i found something else... it is doing what i want but there is a small problem with it, it is splitting the character in word... how can i make it not to split if it is in the word and jump to next space to split !!!
Это сообщение отредактировал(а) huismori - 3.12.2010, 18:03 |
|||
|
||||
| huismori |
|
|||
|
Шустрый ![]() Профиль Группа: Участник Сообщений: 125 Регистрация: 19.1.2010 Репутация: нет Всего: нет |
can anyone help me please ?
|
|||
|
||||
| cat512 |
|
||||
![]() Опытный ![]() ![]() Профиль Группа: Участник Сообщений: 438 Регистрация: 20.3.2007 Репутация: 7 Всего: 15 |
you can try this
Это сообщение отредактировал(а) cat512 - 8.12.2010, 13:09 |
||||
|
|||||
| huismori |
|
||||||
|
Шустрый ![]() Профиль Группа: Участник Сообщений: 125 Регистрация: 19.1.2010 Репутация: нет Всего: нет |
what do you mean with ''the code of tab'' !!! |
||||||
|
|||||||
| cat512 |
|
|||
![]() Опытный ![]() ![]() Профиль Группа: Участник Сообщений: 438 Регистрация: 20.3.2007 Репутация: 7 Всего: 15 |
iif you need to split some text beginning at special character like gaps (#32), crlf(#13#10), tab character(i forget the number) and etc, then you must add the number of special character into that parameter |
|||
|
||||
| huismori |
|
|||
|
Шустрый ![]() Профиль Группа: Участник Сообщений: 125 Регистрация: 19.1.2010 Репутация: нет Всего: нет |
what i want to do is to split the text in rich edit after every 500 characters and put every 500 character in different memo objects...
|
|||
|
||||
| cat512 |
|
||||
![]() Опытный ![]() ![]() Профиль Группа: Участник Сообщений: 438 Регистрация: 20.3.2007 Репутация: 7 Всего: 15 |
It isn't difficult.
don't forget declare the "math" unit |
||||
|
|||||
| huismori |
|
|||
|
Шустрый ![]() Профиль Группа: Участник Сообщений: 125 Регистрация: 19.1.2010 Репутация: нет Всего: нет |
thanks alot cat512
thats doing what i want... 1 more thing; can i put splitted texts in memo objects or stringlists? not in message dialogs !!! |
|||
|
||||
| cat512 |
|
|||
![]() Опытный ![]() ![]() Профиль Группа: Участник Сообщений: 438 Регистрация: 20.3.2007 Репутация: 7 Всего: 15 |
yes you can. It is a sample I have showed you. Of course, you can improve it
Это сообщение отредактировал(а) cat512 - 9.12.2010, 13:54 |
|||
|
||||
| huismori |
|
|||
|
Шустрый ![]() Профиль Группа: Участник Сообщений: 125 Регистрация: 19.1.2010 Репутация: нет Всего: нет |
here what i tried but it didnt really do it good !!! it giveas error if there is no data in to put in memo4... error is: List index out of bounds(4)
what am i doing wrong ???
Это сообщение отредактировал(а) huismori - 9.12.2010, 15:47 |
|||
|
||||
| cat512 |
|
|||
![]() Опытный ![]() ![]() Профиль Группа: Участник Сообщений: 438 Регистрация: 20.3.2007 Репутация: 7 Всего: 15 |
Who writes a cycle so???
you need to index the "table's" items by variable of cycle.
In generally, it will be better never to use the stringlist object here. Why do you need a unnecessary variable? Это сообщение отредактировал(а) cat512 - 9.12.2010, 17:55 |
|||
|
||||
| huismori |
|
|||
|
Шустрый ![]() Профиль Группа: Участник Сообщений: 125 Регистрация: 19.1.2010 Репутация: нет Всего: нет |
i need to make limited lists for text and it is gonna be about 500 or 1000 characters and after i need to send these lists to user... so i thought it would b easier if i put them in memo objects... do u have better idea ?
|
|||
|
||||
| cat512 |
|
|||
![]() Опытный ![]() ![]() Профиль Группа: Участник Сообщений: 438 Регистрация: 20.3.2007 Репутация: 7 Всего: 15 |
I understood what you need, but I need to specify some points.
How are you going to send a text for your users? I would like that you give me more details. Это сообщение отредактировал(а) cat512 - 9.12.2010, 19:50 |
|||
|
||||
| huismori |
|
|||
|
Шустрый ![]() Профиль Группа: Участник Сообщений: 125 Регистрация: 19.1.2010 Репутация: нет Всего: нет |
thanks alot for all your helps cat512
i managed to it for the moment... |
|||
|
||||
| huismori |
|
|||
|
Шустрый ![]() Профиль Группа: Участник Сообщений: 125 Регистрация: 19.1.2010 Репутация: нет Всего: нет |
solved !!!
Это сообщение отредактировал(а) huismori - 14.12.2010, 17:47 |
|||
|
||||
![]()
|
| Правила форума "Delphi: Общие вопросы" | |
|
|
Запрещается! 1. Публиковать ссылки на вскрытые компоненты 2. Обсуждать взлом компонентов и делиться вскрытыми компонентами
Если Вам понравилась атмосфера форума, заходите к нам чаще! С уважением, Snowy, MetalFan, bems, Poseidon, Rrader. |
| 0 Пользователей читают эту тему (0 Гостей и 0 Скрытых Пользователей) | |
| 0 Пользователей: | |
| « Предыдущая тема | Delphi: Общие вопросы | Следующая тема » |
|
|
По вопросам размещения рекламы пишите на vladimir(sobaka)vingrad.ru
Отказ от ответственности Powered by Invision Power Board(R) 1.3 © 2003 IPS, Inc. |