Click here to Skip to main content
15,887,083 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Arrays in vb Pin
sandeep reddy pothireddy20-Nov-14 3:12
professionalsandeep reddy pothireddy20-Nov-14 3:12 
QuestionError exporting crystal report to doc, xls file ? Pin
taibc16-Nov-14 16:29
taibc16-Nov-14 16:29 
AnswerRe: Error exporting crystal report to doc, xls file ? Pin
ZurdoDev18-Nov-14 10:04
professionalZurdoDev18-Nov-14 10:04 
QuestionProblems with List(of T).Contains method Pin
dilkonika16-Nov-14 15:22
dilkonika16-Nov-14 15:22 
AnswerRe: Problems with List(of T).Contains method Pin
PIEBALDconsult16-Nov-14 16:11
mvePIEBALDconsult16-Nov-14 16:11 
GeneralRe: Problems with List(of T).Contains method Pin
dilkonika16-Nov-14 16:53
dilkonika16-Nov-14 16:53 
GeneralRe: Problems with List(of T).Contains method Pin
PIEBALDconsult16-Nov-14 17:07
mvePIEBALDconsult16-Nov-14 17:07 
AnswerRe: Problems with List(of T).Contains method Pin
bojammis5-Dec-14 6:25
professionalbojammis5-Dec-14 6:25 
Howdy,
In Sub2() you have defined a new MyTestClass but you have not added it to the list.

The item defined in sub1 is scoped to sub1 and exists because it was added to the list. The item in sub2 is scoped to sub2 but was not asdded to the list. You are asking the list to check for an item (defined and scoped to sub2) that has not been added to the list yet.

VB
Private Sub2 ()
    Dim item As MyTestClass = New MyTestClass With {.nr = k, .FieldName =s)
    
    mytest.add(item)   'Add this line

    Messagebox.show(mytest.contains(item))

End sub



regs.
QuestionGive me an idea ! Pin
dilkonika15-Nov-14 6:56
dilkonika15-Nov-14 6:56 
GeneralRe: Give me an idea ! Pin
PIEBALDconsult15-Nov-14 8:10
mvePIEBALDconsult15-Nov-14 8:10 
GeneralRe: Give me an idea ! Pin
dilkonika15-Nov-14 12:42
dilkonika15-Nov-14 12:42 
GeneralRe: Give me an idea ! Pin
Dave Kreskowiak18-Nov-14 3:50
mveDave Kreskowiak18-Nov-14 3:50 
Questiondrag and drop in vb6 Pin
Member 996929014-Nov-14 16:44
Member 996929014-Nov-14 16:44 
AnswerRe: drag and drop in vb6 Pin
Richard MacCutchan14-Nov-14 21:35
mveRichard MacCutchan14-Nov-14 21:35 
Questiondrog & drop Pin
Member 996929014-Nov-14 16:25
Member 996929014-Nov-14 16:25 
QuestionHow to analyze last data from clipboard ? Pin
dilkonika14-Nov-14 7:53
dilkonika14-Nov-14 7:53 
AnswerRe: How to analyze last data from clipboard ? Pin
Eddy Vluggen14-Nov-14 8:24
professionalEddy Vluggen14-Nov-14 8:24 
AnswerRe: How to analyze last data from clipboard ? Pin
Mycroft Holmes14-Nov-14 11:56
professionalMycroft Holmes14-Nov-14 11:56 
Question3d walls ib vb6.0 Pin
Otekpo Emmanuel14-Nov-14 3:54
Otekpo Emmanuel14-Nov-14 3:54 
AnswerRe: 3d walls ib vb6.0 Pin
Eddy Vluggen14-Nov-14 4:03
professionalEddy Vluggen14-Nov-14 4:03 
GeneralRe: 3d walls ib vb6.0 Pin
Otekpo Emmanuel14-Nov-14 6:14
Otekpo Emmanuel14-Nov-14 6:14 
GeneralRe: 3d walls ib vb6.0 Pin
Eddy Vluggen14-Nov-14 7:25
professionalEddy Vluggen14-Nov-14 7:25 
Question3d animation Pin
Otekpo Emmanuel13-Nov-14 20:08
Otekpo Emmanuel13-Nov-14 20:08 
AnswerRe: 3d animation Pin
Richard MacCutchan13-Nov-14 22:09
mveRichard MacCutchan13-Nov-14 22:09 
GeneralRe: 3d animation Pin
Otekpo Emmanuel13-Nov-14 22:45
Otekpo Emmanuel13-Nov-14 22:45 

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.