PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

ListBox_Lib Error

Hi,

Your ListBox_Lib.ppl library seems to have miss out the implementation of the function 'LISTBOX_CLEARITEMS'. I paste the error log below.

-- Content of errorlog.txt --

PPL compiler v.0.8

Filename : C:\Program Files\Pocket Programming Language\PPL\Projects\Test\Test.ppl
Parsing...
** (ListBox_lib.ppl) Syntax error at 'LISTBOX_CLEARITEMS' (78,910)
(40 ms)
Compiling... (0 ms)
Completion time (40 ms)
** 1 error(s)

Lee
Hi,

Sorry it took so long. I didn't write the library so I never really bothered to look at it. But now that nobody answered your message, I will.

Simply change your code to ListBox_Clear. There are no functions called ListBox_ClearItems.
PointOfLight · 05 Apr 2005, 17:04 UTC
Actually, I don't think his code is the problem, I think it's a problem with the library. My guess is that one of the functions in the library itself clears the listbox, and at some point the function name got changed from ClearItems to Clear. Since I wrote the library, I will clean up the error when I get home and submit a new copy to you, kornalius.
Yes you are right POL. I just noticed that on the log report. I looked too fast! :)
PointOfLight · 06 Apr 2005, 05:09 UTC
Lee, I just sent an updated file to kornalius. The problem was that there was a call to ListBox_ClearItems (which no longer exists) in the function ListBox_LoadFromFile. If you want to fix the problem for now, just change the line in the ListBox_Lib.ppl file from ListBox_ClearItems to ListBox_Clear. However, I also at some point had decided to change several of the function calls to make them more standard, so you might want to wait until kornalius includes my latest update before making extensive use of that library.