Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "KOL";
Текущий архив: 2006.01.22;
Скачать: [xml.tar.bz2];

Вниз

Kol Memo: strange output on Items[] if item is just one byte   Найти похожие ветки 

 
rofl   (2005-06-05 03:21) [0]

hello,
if i use this code here, and one line is just one byte
memo.items[i] returns #1 instead of the text.

  for i := 1 to memo1.Count do begin
      memo2.add(pas2html(memo1.items[i])+#13#10);
  end;

how can i get around that ?
i use kol 2.08. thanks !


 
rofl   (2005-06-05 03:22) [1]

demo program can be found here http://krazz.net/retnyg/pas2html.zip


 
ECM ©   (2005-06-05 14:44) [2]

I`m download demo... run exe-file...
...one line(just one byte)- work properly - memo.items[0] returns typed char ...
..it`s all right!

#1 - ?????

Win2K3 SP1


 
Thaddy   (2005-06-05 16:04) [3]

Confirm, I tried to reproduce it, but I can"t XP sp2 and Me


 
rofl   (2005-06-05 16:14) [4]

just open the demo program and type a "." in the upper box.
in memo2 a square sign should appear (win xp sp1 german)


 
rofl   (2005-06-05 16:21) [5]

it looks like this http://krazz.net/retnyg/memobug.gif


 
Thaddy   (2005-06-05 17:05) [6]

Nope, doesn"t seem to want to reveal itself to me:
Tested Me, Xp sp2 Us english and Dutch and D4,D5 and D7.
All versions work ik. I am online, we could brainstorm..


 
rofl   (2005-06-05 23:58) [7]

The problem can be reproduced when changing country settings to germany, as thaddy found out.
the error seems to be somewhere on Perform(aGetItemText,buf,idx)
it doesn"t returns anything, so the length stays in the buffer, instead of the char.
it can be worked around when using a #13#10-loop on memo.text instead of memo.items[x].
hopefully one of the pro"s here can solve this issue


 
rofl   (2005-06-07 02:23) [8]

news: the error does NOT happen when using KOL 2.0


 
Thaddy   (2005-06-07 02:45) [9]

I tried but failed (|



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

Форум: "KOL";
Текущий архив: 2006.01.22;
Скачать: [xml.tar.bz2];

Наверх




Память: 0.46 MB
Время: 0.035 c
1-1135025594
Volf_555
2005-12-19 23:53
2006.01.22
Как в Delphi создать собственное хранилище файлов и папок?


2-1135708630
Chester
2005-12-27 21:37
2006.01.22
Народ как правильно поставить счётчик?


2-1135984359
ilifant
2005-12-31 02:12
2006.01.22
integer()


14-1135437254
Сатир
2005-12-24 18:14
2006.01.22
Отладка DCOM-сервера


2-1136460168
Vek
2006-01-05 14:22
2006.01.22
Как сделать чтобы открывался текстовый файл в блокноте





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский