Click here to Skip to main content
15,896,606 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionscript for MS Word 2003 doesn't work for Word 2007 Pin
Member 791550011-May-11 5:05
Member 791550011-May-11 5:05 
AnswerRe: script for MS Word 2003 doesn't work for Word 2007 Pin
Dave Kreskowiak11-May-11 6:19
mveDave Kreskowiak11-May-11 6:19 
QuestionSave a PDF file into a SQL Server Pin
Central_IT10-May-11 2:36
Central_IT10-May-11 2:36 
AnswerRe: Save a PDF file into a SQL Server Pin
Shameel10-May-11 3:03
professionalShameel10-May-11 3:03 
Questionhow to create dynamic reports Pin
Preeti19799-May-11 23:24
Preeti19799-May-11 23:24 
QuestionProper way to use .contains and .find methods with List(of object) Pin
Jon_Boy6-May-11 4:35
Jon_Boy6-May-11 4:35 
AnswerRe: Proper way to use .contains and .find methods with List(of object) Pin
Manfred Rudolf Bihy6-May-11 5:10
professionalManfred Rudolf Bihy6-May-11 5:10 
AnswerRe: Proper way to use .contains and .find methods with List(of object) [modified] Pin
AspDotNetDev6-May-11 5:16
protectorAspDotNetDev6-May-11 5:16 
I don't think ReportParameter is IEquatable, so you must use your own predicate to find the item (see below code). Also, even if it were IEquatable, your code uses two different constructors (a 3-parameter constructor and a 1-parameter constructor), which would set different variables in the object, so they wouldn't be equal anyway.

VB.NET
Dim params As New List(Of ReportParameter)
params.Add(New ReportParameter("Param1", "Value1", False))
Dim foundParam As ReportParameter =
	params.Find(New Predicate(Of ReportParameter)(Function(rp As ReportParameter) rp.Name = "Param1"))
If foundParam Is Nothing Then
	Debug.Print("Doesn't contain.")
Else
	Debug.Print("Does contain.")
End If

C++
S<T>::f(U) // Out of line.

modified on Friday, May 6, 2011 11:30 AM

GeneralRe: Proper way to use .contains and .find methods with List(of object) Pin
Jon_Boy6-May-11 6:01
Jon_Boy6-May-11 6:01 
GeneralRe: Proper way to use .contains and .find methods with List(of object) Pin
Tarun.K.S6-May-11 8:04
Tarun.K.S6-May-11 8:04 
QuestionData binding Pin
Margaret Nansubuga4-May-11 3:46
Margaret Nansubuga4-May-11 3:46 
AnswerRe: Data binding Pin
Simon_Whale4-May-11 4:04
Simon_Whale4-May-11 4:04 
QuestionHow to check CDDrvive is ready or not Pin
sandeep sangshetty3-May-11 19:21
sandeep sangshetty3-May-11 19:21 
AnswerRe: How to check CDDrvive is ready or not Pin
Dave Kreskowiak4-May-11 1:21
mveDave Kreskowiak4-May-11 1:21 
AnswerRe: How to check CDDrvive is ready or not Pin
Simon_Whale4-May-11 1:22
Simon_Whale4-May-11 1:22 
QuestionCannot close application in or outside of debugger Pin
Alan Burkhart3-May-11 16:32
Alan Burkhart3-May-11 16:32 
AnswerRe: Cannot close application in or outside of debugger Pin
Luc Pattyn3-May-11 17:34
sitebuilderLuc Pattyn3-May-11 17:34 
GeneralRe: Cannot close application in or outside of debugger Pin
Alan Burkhart3-May-11 17:45
Alan Burkhart3-May-11 17:45 
AnswerRe: Cannot close application in or outside of debugger Pin
Luc Pattyn3-May-11 18:13
sitebuilderLuc Pattyn3-May-11 18:13 
GeneralRe: Cannot close application in or outside of debugger Pin
Alan Burkhart3-May-11 18:35
Alan Burkhart3-May-11 18:35 
AnswerRe: Cannot close application in or outside of debugger Pin
Luc Pattyn3-May-11 18:47
sitebuilderLuc Pattyn3-May-11 18:47 
GeneralRe: Cannot close application in or outside of debugger Pin
Alan Burkhart3-May-11 19:04
Alan Burkhart3-May-11 19:04 
AnswerRe: Cannot close application in or outside of debugger Pin
Luc Pattyn4-May-11 1:49
sitebuilderLuc Pattyn4-May-11 1:49 
GeneralRe: Cannot close application in or outside of debugger Pin
Alan Burkhart4-May-11 6:05
Alan Burkhart4-May-11 6:05 
AnswerRe: Cannot close application in or outside of debugger Pin
Luc Pattyn4-May-11 6:09
sitebuilderLuc Pattyn4-May-11 6:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.