•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the VB.NET section within the Software Development category of DaniWeb, a massive community of 427,935 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,934 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our VB.NET advertiser: Programming Forums
Views: 30891 | Replies: 1
![]() |
•
•
Join Date: Dec 2004
Posts: 3
Reputation:
Rep Power: 0
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.
![]() |
•
•
•
•
•
•
•
•
DaniWeb VB.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- System.String.LastIndexOf problem (C++)
- Coverting a string to a byte array (Visual Basic 4 / 5 / 6)
- string to formula (Visual Basic 4 / 5 / 6)
- Help with String Comparison (C++)
- Anyone a VB.NET Guru? (VB.NET)
- Microsoft .NET FAQ (ASP.NET)
- comparing two strings with linear search.. (Java)
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


Linear Mode