1. [WIN] What's my issue?
- Posted by leviathan at uswest.net Mar 01, 2001
- 496 views
- Last edited Mar 02, 2001
Heya all! Okay, I wonder about this... I have a search box, but after clearing the search listview and trying the search again, it crashes. I got down exactly the line it crashes at, however, I have absolutely no clue why it crashes since I unfortunatly don't have the full version interpreter quite yet (I'm working on it), so can someone tell me whats wrong? Heres where to download the program: http://oberon.spaceports.com/~lordlev/binaries/napsterparse.zip . Unzip it into a directory, and run 'exw napsterparse'. Then after its done loading, press Search. Afterwards, type a search string, like 'limp', and press 'Find Now'. You'll get the results. Then, press 'Find now' again. It doesn't matter if you changed the string, nothing any different happens. Now you'll get the trace window to come up, then, press enter a couple times til you get to the 'getLVItemText' place. The next keypress leads it to text=peek_string(lvitem_data[item][2][subitem][1]). And then? It crashes, and I don't know why, since I have the PD interpreter. Now, can someone tell me how to fix this? :-\ TIA, --"LEVIATHAN"
2. Re: [WIN] What's my issue?
- Posted by Vincegg at AOL.COM Mar 02, 2001
- 495 views
Hello, Looking at the getLVItemText function I wonder why the id variable is required since it's not used within the function. Perhaps that is what is wrong? How does the function know which ListView's data it's supposed to look at? It got me wondering. Vince
3. Re: [WIN] What's my issue?
- Posted by ddparnell at bigpond.com Mar 02, 2001
- 508 views
Hi Vince, I've enhanced this function in v0.56. It now looks like this .... -------------------------- global function getLVItemText( integer id, integer item, integer subitem) sequence text --NEW! v0.56-- Added parameter validation. text = "" if item > 0 and item <= length(lvitem_data) and subitem >= 0 and subitem <= length(lvitem_data[item][2]) and id = lvitem_owner[ item ] then -- NEW! v.056-- Subitem of 0 returns all strings. if subitem = 0 then for i = 1 to length(lvitem_data[item][2]) do text = append(peek_string(lvitem_data[item][2][i][1]), text) end for else text = peek_string(lvitem_data[item][2][subitem][1]) end if end if return text end function ------ Derek Parnell Melbourne, Australia "To finish a job quickly, go slower." ----- Original Message ----- From: <Vincegg at AOL.COM> To: "EUforum" <EUforum at topica.com> Sent: Saturday, March 03, 2001 5:09 AM Subject: Re: [WIN] What's my issue? > Hello, > > Looking at the getLVItemText function I wonder why the id variable is > required since it's not used within the function. Perhaps that is what is > wrong? How does the function know which ListView's data it's supposed to > look at? It got me wondering. > > Vince