Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2005.11.13;
Скачать: CL | DM;

Вниз

ListBox + SaveToFile = ?   Найти похожие ветки 

 
Bil Bal Dur   (2005-03-24 10:14) [0]

Там есть RE_SaveToFile, но он ничего у меня не сохраняет почему-то. Как же быть?


 
ECM ©   (2005-03-24 10:39) [1]

kol.pas:

   function RE_SaveToStream( Stream: PStream; Format: TRETextFormat; SelectionOnly: Boolean ): Boolean;
   {* |<#richedit>
      Use this method rather then RE_TextProperty to store data to file
      or stream (to minimize resources during saving of RichEdit content).
      Data is saving starting from current position in a stream (until
      end of RichEdit data). If SelectionOnly flag is True, only selected
      part of RichEdit text is saved.
      |<br>   
      Like for RE_LoadFromStream, it is possible to assign your method to
      OnProgress event (but to calculate progress of save-to-stream operation,
      compare current stream position with RE_Size[ rsBytes ] property
      value). }


этот метод - для RichEdit и к ListBox не имеет никакого отношения. Советую почитать сначала почитать тексты на сайте
Кладова.


 
ECM ©   (2005-03-24 10:40) [2]

   function RE_SaveToFile( const Filename: String; Format: TRETextFormat;
            SelectionOnly: Boolean ): Boolean;
   {* |<#richedit>
      Use this method rather then other similar, if You want to store
      entire content of RichEdit or selection only of RichEdit to a file. }

... опять промазал... :)
но сути это не меняет.


 
Bil Bal Dur   (2005-03-24 11:26) [3]

>этот метод - для RichEdit и к ListBox не имеет никакого отношения
Это мне понятно. Я просто попробовал.
Но чтож тогда построчно сохранять? Нет ли подобной функции у ListBox?


 
RA ©   (2005-03-24 11:40) [4]


 KOL.StrSaveToFile("file.txt",ListBox1.Text);



Страницы: 1 вся ветка

Текущий архив: 2005.11.13;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.035 c
11-1111257733
rofl
2005-03-19 21:42
2005.11.13
linux + fpc + kol


8-1117391048
Grief
2005-05-29 22:24
2005.11.13
воспроизведение звука


9-1120137208
D!m@N
2005-06-30 17:13
2005.11.13
DirectSound SDK для Delphi


2-1129558566
Dush
2005-10-17 18:16
2005.11.13
inherited


14-1130085395
Profi
2005-10-23 20:36
2005.11.13
Посоветуйте / подкиньте идеи.