I do watch DoThisItemQ and it changes from False to True
which is why I investageted in the first place.
Thanks for leting me in on something that might be good to know in the
future but I don't think it solves my current problem.
I expected someone to say' you don't can't check for "" that way in VB.NET,
but I now assume it's OK.
I'm guessing that quickwatch showing astrThisOne as "" is the problem.
For one thing it's declared thus: astrThisOne As String
Quickwatch simply shows it as: astrThisOne with a value of: ""
If it is an object shouldn't quickwatch show all the members?
It get set by:
astrThisOne = Trim(CagListViews1.SelectedItem(alngColumn, alngItem))
which uses results in:
Get
Dim llvwX As ListViewItem
llvwX = lvwSelected.Items(alngIndex)
If alngColumn = 0 Then
SelectedItem = llvwX.Text
Else
SelectedItem = llvwX.SubItems(alngColumn - 1).Text
End If
End Get
I wonder what get returned fo a subitem that is never set?
I tried Debug.WriteLine(astrThisOne.ToString)
and nothing gets written when it's ""
Any ideas?
Thanks for the reply
Cal
"Armin Zingler" <az*******@freenet.de> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
" active" <ac****@REMOVEa-znet.com> schrieb I use quickwatch on
(astrThisOne <> "")
and it reports: False
as it should because
astrThisOne reports: ""
Yet
If (astrThisOne <> "") Then
executes the Then clause
I'm going to try checking the length instead but would like to know
what's happening because I've got many such checks
I've got the code at Break in front of me and know what I've said
above is true because I can easily check it.
Thanks
Cal
I've got the code at Break in front of me and know what I've said
above is true because I can easily check it.
Break highlighted" DoThisItemQ = True and the quickwatchs as
described above.
If (astrThisOne <> "") Then
If (sstrLastOne <> astrThisOne) Then DoThisItemQ = True
End If
That's only a drawback/bug of the IDE. The command seems to get executed
but it does not. BTW, can easily be checked after also watching DoThisItemQ.
You will see that it stays False (if it was False before).
--
Armin
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html