Re: setindex error

new topic     » goto parent     » topic index » view thread      » older message » newer message

George,

Why do you want to set the index if there is nothing in the list?  Why not
do something like this:

if length(ListWhatever) > 0 then
    setIndex(ListWhatever, 1)
end if

That way, if there's nothing in the List, you won't get the error.

Virtual B

----- Original Message -----
From: George Walters <gwalters at sc.rr.com>
To: EUforum <EUforum at topica.com>
Sent: Monday, August 27, 2001 8: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
>
>
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu