Recent

Author Topic: Kol-ce Tstringlist / arrays  (Read 8885 times)

aji

  • New Member
  • *
  • Posts: 13
Kol-ce Tstringlist / arrays
« on: November 06, 2007, 08:53:15 pm »
I would like to use the Tstringlist in  my program. However since this is declared in the classes unit, and I'm not supposed to use that in a kol-ce project, I am wondering what I should be doing instead. Adding a tstringlist without the classes unit gives me this error:
"unit1.pas(54,25) Error: Identifier not found "TStringList""

I have tried adding the classes unit. The first time it messed up everything, and I couldn't fix it. I then tried building a new project and it seamed to work, but I'm worried about the consequences apart from doubling the size of the executable.

I've also tried replacing it with a two-dimensional array, but had problem using it.

Any ideas?

yuriy_sydorov

  • Full Member
  • ***
  • Posts: 158
RE: Kol-ce Tstringlist / arrays
« Reply #1 on: November 07, 2007, 11:02:44 am »
KOL has TList, TListEx, TStrList, TStrListEx with similar functionality like in Classes unit.
Look into KOL.pas for more info. Also you can use xHelpGen utility to generate html help from KOL sources.

aji

  • New Member
  • *
  • Posts: 13
xhelpgen problem
« Reply #2 on: November 07, 2007, 06:16:54 pm »
Thanks,

I know I should have looked at the kol.pas file, but simply forgot about it. I had tried to run the xhelp gen on the kol directory earlier, but it didn't generate all the help files (only some).
I tried again today. The xhelpgen.ini files shows:
[Colors]
HLink=008080
VLink=008000
ALink=808000
BgColor=FFFFEF
TxColor=000000
HdColor=FF8080
Class=808000
Name=800080
ReservedWord=800000
String=A08020
Comment=004000
Other=008080
[Settings]
Title=KOL Help
Subfolders=0
SpecialChar=*
UseWebdings=1
[Source]
SourcePath=C:\lazarus\kol-ce-2.80\kol\
ResultPath=C:\lazarus\kol-ce-2.80\kol\
UseJavaScript=0
File1=err.pas,30.06.2007 05:52:16
File2=KOL.PAS,19.10.2007 06:45:28
File3=KOLadd.pas,22.08.2007 22:01:28
File4=KOLDirDlgEx.pas,29.08.2007 22:35:14
File5=KOLMHToolTip.pas,29.05.2007 16:46:50
FileCount=5
HelpGenVersion=3.08.2002 23:13:10

However the only files generated are:
err_pas.htm, exception.htm, index.htm, left_exception.htm, main_exception.htm, top_exception.htm and the largest file is 10kb

So I'm left looking at the pas files with a text editor.

yuriy_sydorov

  • Full Member
  • ***
  • Posts: 158
RE: xhelpgen problem
« Reply #3 on: November 12, 2007, 09:55:11 pm »
I fixed that in svn. Now xHelpGen will work if you use svn version of KOL-CE.

 

TinyPortal © 2005-2018