| | |
string comparison in VB.net
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Dec 2004
Posts: 3
Reputation:
Solved Threads: 0
The InStr("String", "String you are looking for") will return > 0 if a string is found.
Hence if StingA = "a b c d xx d c b a"
Dim StringSearch as integer
StringSearch = Instr(StringA, "xx")
StringSearch should return 9 [the position in the string of "xx"].
Now all you have to do is use the ComboBox list index property to search each of the combo boxes values and identify if the string is present in them.
Hence if StingA = "a b c d xx d c b a"
Dim StringSearch as integer
StringSearch = Instr(StringA, "xx")
StringSearch should return 9 [the position in the string of "xx"].
Now all you have to do is use the ComboBox list index property to search each of the combo boxes values and identify if the string is present in them.
![]() |
Similar Threads
- String comparison in two files (C++)
- string-comparison methods and the techniques (Java)
- Help with String Comparison (C++)
- Microsoft .NET FAQ (ASP.NET)
Other Threads in the VB.NET Forum
- Previous Thread: Knowing what language is used on a computer
- Next Thread: Expert in Class Creation & Implementation Needed
| Thread Tools | Search this Thread |
"crystal .net .net2005 30minutes 2008 access add arithmetic array assignment basic binary bing box button buttons center code combobox component connectionstring convert cpu data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dosconsolevb.net editvb.net employees excel file-dialog firewall folder google hardcopy image images isnumericfuntioncall listview login math memory mobile ms msaccess mssqlbackend mysql navigate net networking opacity output pan peertopeervideostreaming picturebox picturebox1 plugin port print printpreview problemwithinstallation project record reports" reuse save savedialog serial sorting sql storedprocedure string temp text textbox timer toolbox updown upload useraccounts usercontrol vb vb.net vb.netcode vb.nettoolboxvisualbasic2008sidebar vbnet view vista visual visualbasic visualbasic.net visualstudio web wpf





