Strange behave

Ruslan Zasukhin sunshine at public.kherson.ua
Mon Dec 11 12:41:04 CST 2006


On 12/11/06 12:05 PM, "Joakim Schramm" <joakim at astrocalc.com> wrote:

>>> 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.

I think this is VB6 problems


-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina mailing list