BASICBEGINNER Posted May 14, 2008 Posted May 14, 2008 Create a Find String application that displays the first position of a word or phrase in another word or phrase. Use text boxes to prompt the user for a string and a search substring. The application interface should look similar to that shown on the right after typing the strings and clicking Find String. HELP PLEASE!!!! I AM A BEGINNER! Quote
Leaders snarfblam Posted May 14, 2008 Leaders Posted May 14, 2008 We aren't going to write the program for you. You're going to have to try yourself and/or ask more specific questions. Quote [sIGPIC]e[/sIGPIC]
Administrators PlausiblyDamp Posted May 15, 2008 Administrators Posted May 15, 2008 You get the feeling he might be trying to get us to do his homework for him? ;) Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Nate Bross Posted May 15, 2008 Posted May 15, 2008 Look into the following methods to locate the different occurances of strings within another string. String.IndexOf(); // and String.IndexOfAny(); In C# there is no "input" dialog, so it'd be the most simple to use another textbox on your form. Or use the following VB code Dim sResult as String = String.Empty sResult = Input("Title", "Message") As for application interface your on your own -- the designer is pretty easy to use once you load it and spend five minutes with it. That is all the information I can provide based on your vague question. Quote ~Nate� ___________________________________________ Please use the [vb]/[cs] tags on posted code. Please post solutions you find somewhere else. Follow me on Twitter here.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.