Results for "Category: String Manipulation"
This is a basic drag and drop demo. It is written to recognize what type of file is being dropped and only excepts exe's but you could modify it to excpet any file extension. I think I commented the demo well enough for everyone. I hope it's ueful. Saturday, March 31, 2001 I added a few more lines of code for the ".EXE" statement because there are 2 kinds of exe's! Upper case and Lower case! It sounds funny but i have both kinds of exe's on my machine so i thought i better fix this little bug! I Also added a Progress Bar! Peace, jim byrnes
This code shows almost all usefull function for string manipulation. Easy to understand, Easy to implement! Every line of source code with comment and 1 command button done all the functions in the text boxes.
Syntax coloring, advanced selection routines and Highlighting. Highlighting using the Richtextbox control is awkward. Whilst there are a host of Selection properties there is no Highlight property we can access from VB. We just have to parse the RTF code.
Levenshtein edit distance is a measure of the similarity between two strings. Edit distance is the the minimum number of character deletions, insertions, substitutions, and transpositions required to transform string1 into string2. In essence, the function is used to perform a fuzzy or approximate string search. This is very handy for trying to find the "correct" string for one that has been entered incorrectly, mistyped, etc. The code has been optimized to find strings that are very similar. A "limit" parameter is provided so the function will quickly reject strings that contain more than k mismatches.
This is a program to make totally random passwords out of letters, numbers, or both. Shows how to convert strings to lowercase, make a scrolling, typing, caption effect and how to use random numbers.
Shows Random Number Coding, Case Select and a good for next loop with Listbox. Also a simple counter. Combines words into full sentences. Fun program too, sort of funny, but some generated conspiracies may be TRUE (ewwwww - spooky). Feedback appreciated.
Use these functions in KeyPress events to format user entries as entry is typed. UCaseKeyPress() converts key pressed to uppercase while LCaseKeyPress() converts key pressed to lowercase.
This Code will Scroll the title of your window(s) like Winamp To the left OR to the right.
It typewrites any text you choose at any given speed
Provides functionality to have a buffer of Undo's in your application so users can go back as far as they want and redo their actions again....
This takes a jumbled word and compares it to a list of words (apprx 110,000 words) that are commonly used in crossword puzzles and such. I got this paticualr idea from Robert Rayment's code on finding anagrams for a word. You can also replace the provided word list with a bigger one. please give all feedback positive and negative. Thanks, and vote
This SQL formatter Add In formats your SQL in various formats
This code returns a boolean expression that declares if a string is a valid email address or not. It returns true if the string is valid, false if not
This is an update of version 2.00 that I have done today. Because of some complaints of the speed I have added a speed option which includes "Fastest" (but this only works for options 8 to 12 as the others are so fast you cannot see them work!!) I have added a new FX called "Black Hole" where the text dissapears in to, or out of, the centre of the string. There are now 2 Bandits. The new 2nd one cycles through all the characters at the same time, compared to number 1 which did them one at a time. It should be noted that this is also an example of Framed Options; diabling and enabling them and discovering which have been selected by the user. Also in the Speed textbox you can only enter numbers (I got that off here, but hey!) Although I wrote this in VB5, I see no reason why it will not work in ANY of the other versions as it only uses basic commands like MID and MID$. (Although I am not sure when the MID command came in...) Please rate this!! and I would be interested in any comments you may have. Thanx!
This shows you how to search for a "string" inside of a "string" to see if it's there or not. This makes a good E-mail validator.. If the user doesn't put the "@" character, this will know it's not there and return false. This also works the same way if your trying to validate a Full Name. I commented everyline so enjoy and good luck.-Mike
Finds the most appropriate font size to display a piece of Text in a picture box. Allows user to determine the Alignment of the text (Left, Right, Centre or Full justification). Options to include a drop-shadow, and the direction of the shadow are also included. Includes test form with example.
This teaches users how to manipulate strings using. Left(),Right(),Mid(),Len(),Instr(),Lcase(),Ucase() and StrReverse().
I looked on this site to find something like this, but i didnt find exactly what i wanted. Here is the source that i created that takes random characters from a text box and places them in a label. It takes a user defined amount of characters including spaces and periods and everything else. =) UPDATED AGAIN!! Now has added features! Can count characters and vowels and words etc! If you know a better way to do this, please email me. This type of program can be used for fortunes, making up new words, choosing usernames(i actually know somebody that did this with a similar program), etc. PLEASE VOTE!!!
This program lets you input text or copy paste from another program. as you type or the text is pasted in, it counts the amount of words, spaces, vowels, consanents, etc. It can be used for programs like icq, text editors, and much more! Please give me feedback and vote!
Have you been using the instr function, or 3rd party functions to find the word count of a block of text. Now you find it in ONLY 2 LINES OF CODE - NO API CALLS - NO MODULES / CLASSES / CONTROLS - PURE VB CODE