Strange behave
Joakim Schramm
joakim at astrocalc.com
Mon Dec 11 11:05:58 CST 2006
> -----Original Message-----
> From: valentina-bounces at lists.macserve.net
> [mailto:valentina-bounces at lists.macserve.net] On Behalf Of
> Ruslan Zasukhin
> Sent: 11 December 2006 10:41
> To: valentina at lists.macserve.net
> Subject: Re: Strange behave
>
> On 12/10/06 10:44 PM, "Joakim Schramm" <joakim at astrocalc.com> wrote:
>
> > Hi,
> >
> > I have this code
> >
> > .Open AtlasPath
> > MsgBox CStr(.IsOpen)
> > If .IsOpen = True Then
> > InitAtlasDB = True
> > .Close
> > End If
> >
> > The message box report True for .IsOpen. But still If
> .IsOpen = True
> > Then evaluate to False ???
> >
> > .IsOpen not a "True" Boolean?
>
> Try extract into variable and check in debugger
>
> x = .IsOpen
>
Well .IsOpen return True, but when used in evaluating expresion "If .IsOpen
= True Then" or "If .IsOpen Then", the value still show True BUT expression
evaluate to False, I mean if it's True it don't jump into stament in If
clause but jump over it. If I first assign it to variable and then test with
variable it works. Just strange.
Joakim
More information about the Valentina
mailing list