PDA

View Full Version : Windows XP error


Donone
03-03-2007, 11:09 AM
PPL 1.21 - PIDE - Windows XP Pro sp2
I seem to be hogging but perhaps I'm the only one working on Saturday. Neither am I having much luck.

I started a new blank project and placed a ListView control named 'Grid' and saved.
Run was OK and it appeared.
I then added in the Form Creation; ListView_Add(Grid$,"Test") on the assumption that I was adding the first item.
Run produced that dreaded Windows 'Do you want to send?' message, PPL.exe encountered a problem...

I then tried instead, in case there was no default column, ListView_AddColumn(Grid$,"test","TEST",40,1) and got the same.

Incidentally, there 'appears' (I say this with fear in my heart) to be a missing parameter. It depends what Index$ refers to in PPL . There are three parameters after the name, ahead of width.
one should indicate where the column is to be added, if blank defaults to append. Second the key name of the column which can be used instead of a number for reference and third the Text heading for the column. As it appears to work now all columns will be appended. Please don't be cross if I am mistaken. !lol

kornalius
03-03-2007, 02:22 PM
I will be tempted to say that Grid$ is not the variable for the component or it is being used as a local() within the create function.

ListView(Handle$, Text$);

That is all there is to it.