realbasic-nug
[Top] [All Lists]

Re: Listbox.CellTag problems

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Listbox.CellTag problems
From: Norman Palardy <npalardy at great-white-software dot com>
Date: Fri, 23 Feb 2007 19:26:37 -0700
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <B7DF2F2A-A46A-487B-8E6A-4EB389DECCB3 at nc dot rr dot com> <3290EB06-16D6-44DB-B458-9898ED4E240C at great-white-software dot com> <A18C1E05-4342-4775-9CF9-594DA79B4371 at mac dot com>
On Feb 23, 2007, at 6:18 PM, Tom Benson wrote:

> I having some weird inconsistent things happening as well.
> [snip]
> Sometimes it returns false, and sometimes it returns true, for the
> exact same values of X and Y !!!!! Something wrong with the int type
> I think....

I just had one where I did

  i = ubound(myarray)
  if i > 1 then
    ... do something with myarray(1)
  end if

  i was always getting assigned 0 but the if was always being  
evaluated as true so the branch was being taken and then I'd get an  
error trying to use myarray(1) as it really did not exist. the ubound  
was in fact 0

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>