Click here to Skip to main content
15,923,222 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Rich Text Box Pin
Eddy Vluggen16-Jan-12 11:57
professionalEddy Vluggen16-Jan-12 11:57 
GeneralRe: Rich Text Box Pin
Fred Andres17-Jan-12 7:35
Fred Andres17-Jan-12 7:35 
GeneralRe: Rich Text Box Pin
Eddy Vluggen17-Jan-12 8:26
professionalEddy Vluggen17-Jan-12 8:26 
AnswerRe: Rich Text Box Pin
Dave Kreskowiak17-Jan-12 2:11
mveDave Kreskowiak17-Jan-12 2:11 
GeneralRe: Rich Text Box Pin
Fred Andres17-Jan-12 7:35
Fred Andres17-Jan-12 7:35 
AnswerRe: Rich Text Box Pin
Shameel19-Jan-12 19:03
professionalShameel19-Jan-12 19:03 
QuestionVB Scripting for OUTLOOK 2003 Pin
Yogesh M kumar14-Jan-12 19:09
Yogesh M kumar14-Jan-12 19:09 
QuestionContains Method returns false if string and parameter are equal? Pin
Dominick Marciano14-Jan-12 16:15
professionalDominick Marciano14-Jan-12 16:15 
I came across something that I thought was kind of odd. My software does data analysis on a bunch of data and there is a function that determines what kind of data point each point is. To do this the function looks at different fields to try and determine it. For example:
VB
Select Case value
  Case value.contains("reading")
  Case value.contains("cal")
  Case Else
End Select


Recently one of the data points sent to this determination function (value) was exactly "cal". In this case when the value was evaluated in the select statement it wasn't picked up. I need to change the select statement to:
VB
Select Case value
  Case value="cal"
  Case value.contains("reading")
  Case value.contains("cal")
  Case Else
End Select

Is this always how the contains methods worked? That if the string was exactly the same as the parameter passed to the contains method that the contains method would return false? I just recently migrated this project to .NET 4 and VS2010, but I'm pretty sure that in .NET 3.5 and VS2008 the first select statement would have worked. Did something change in .NET 4 with how the contains statement is evaluated?
AnswerRe: Contains Method returns false if string and parameter are equal? Pin
Dave Kreskowiak15-Jan-12 3:46
mveDave Kreskowiak15-Jan-12 3:46 
GeneralRe: Contains Method returns false if string and parameter are equal? Pin
Shameel19-Jan-12 19:07
professionalShameel19-Jan-12 19:07 
QuestionDatabound combobox filtering issue Pin
Stefano Leoni13-Jan-12 12:29
Stefano Leoni13-Jan-12 12:29 
AnswerRe: Databound combobox filtering issue Pin
Stefano Leoni17-Jan-12 3:17
Stefano Leoni17-Jan-12 3:17 
Questiondrop down list selected value Pin
Seema Bawa13-Jan-12 11:11
Seema Bawa13-Jan-12 11:11 
QuestionRe: drop down list selected value Pin
Richard MacCutchan13-Jan-12 22:31
mveRichard MacCutchan13-Jan-12 22:31 
AnswerRe: drop down list selected value Pin
sri08018818-Jan-12 23:44
sri08018818-Jan-12 23:44 
QuestionOpinions needed on "shared" keyword Pin
nlarson1112-Jan-12 8:05
nlarson1112-Jan-12 8:05 
AnswerRe: Opinions needed on "shared" keyword Pin
Luc Pattyn12-Jan-12 8:16
sitebuilderLuc Pattyn12-Jan-12 8:16 
GeneralRe: Opinions needed on "shared" keyword Pin
nlarson1112-Jan-12 8:21
nlarson1112-Jan-12 8:21 
GeneralRe: Opinions needed on "shared" keyword Pin
Dave Kreskowiak12-Jan-12 8:32
mveDave Kreskowiak12-Jan-12 8:32 
GeneralRe: Opinions needed on "shared" keyword Pin
nlarson1112-Jan-12 8:38
nlarson1112-Jan-12 8:38 
GeneralRe: Opinions needed on "shared" keyword Pin
Dave Kreskowiak12-Jan-12 9:38
mveDave Kreskowiak12-Jan-12 9:38 
GeneralRe: Opinions needed on "shared" keyword Pin
Luc Pattyn12-Jan-12 8:34
sitebuilderLuc Pattyn12-Jan-12 8:34 
GeneralRe: Opinions needed on "shared" keyword Pin
nlarson1112-Jan-12 8:51
nlarson1112-Jan-12 8:51 
AnswerRe: Opinions needed on "shared" keyword Pin
Eddy Vluggen12-Jan-12 10:40
professionalEddy Vluggen12-Jan-12 10:40 
GeneralRe: Opinions needed on "shared" keyword Pin
nlarson1113-Jan-12 2:44
nlarson1113-Jan-12 2:44 

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.