|
-
June 8th, 2012, 08:41 AM
#6
Re: IF Statement
 Originally Posted by dr223
I receive the Message:
No Practice need Update.
When I click OK, I do receive another similar message and so on.
So now you should be reciving one for Each item in the list... and one of them will return what your looking for (you might have missed it)..
So now lets change a few more lines...
Code:
strFlag = "Ignore"
While Autoreader.Read()
prac_no = Autoreader.GetValue(0)
prac_enabled = Autoreader.GetValue(1)
For irow = 0 To DgvPracExcl.Rows.Count - 1
If prac_no = DgvPracExcl.Rows(irow).Cells(0).Value Then
If prac_enabled = DgvPracExcl.Rows(irow).Cells(3).Value Then
' MsgBox("No Practice need Update", MsgBoxStyle.Information, "VeriSIS")
Exit For
Else
MsgBox("Practice need Update", MsgBoxStyle.Information, "VeriSIS")
strFlag = "Update"
Exit For
End If
End If
Next irow
End While
Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
WPF Articles : 3D Animation 1 , 2 , 3
Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|