Re: setindex error
- Posted by Derek Parnell <ddparnell at bigpond.com> Aug 27, 2001
- 495 views
George, is the message you are getting this one....? sendMessage(#1) in setIndex failed. if so, you can edit the win32lib.ew file as this is only a warning message (setting the index for an empty list is not a logical thing to do, I guess). Locate the text that looks like ... if sendMessage( id, msg, index-1, 0 ) = -1 and index != 0 then warnErr( sprintf("sendMessage(#%x) in setIndex failed.", {msg} ) ) end if and replace it with ... VOID = sendMessage( id, msg, index-1, 0 ) ---- Derek. ----- Original Message ----- From: "George Walters" <gwalters at sc.rr.com> To: "EUforum" <EUforum at topica.com> Sent: Tuesday, August 28, 2001 1:07 AM Subject: setindex error > > If you have a create type of 'list' and because of whatever data reasons > there are no items to display in the list I'm getting a setindex error from > win32. How do you avoid this? setIndex of 1 or 0 doesen't work. Do I have to > add a dummy item to the list saying something like " **** no items found > ***" and set the indes to 1?? > > ...george > > >