Results for "Category: String Manipulation"
Increments any serial number string up to the length of the original string passed to the function. Allows serial string to have delimiters. This could be useful to anyone that require automatic incrementing of a number, such as a job number, receipt number, etc
I really don't like Database's so I came up with a new way to do it without all the hastle. I am not saying it is great, but its a quick fix. More file saving tasks must be implemented but so far so good.
Splits a string into an array. If you send a " " it will split all the words into each array position.
A MUST have for any VB programmer - protect your project .exe file with CRC32 checksum validation - makes it virtually impossible for crackers to make software patches for your exe!
Like IE4 and IE5, this module when setup with your TextBoxes, will make repetitive data entries easier for your users. For example, if "hello" had been typed into the TextBox earlier, at a later date, all the user has to do is type "h" and the rest of the word will appear. Just in the style of IE4. This stores all the keywords in a file named after the TextBox specified. It automatically adds new words to this list when the user presses Enter on the keyboard. Even though I've uploaded it as a ZIP, it's not because it's hard, but to make it easier to understand how it's working.....
This takes 2 strings and returns the percent alike that they are. (i.e. "test string number 1" is 86.48% similar to "teststring numb 2") This function is very useful! You can use it in databases to match data that may have errors in it. Examples being people's names, company names, addresses, or anything else where you may encounter misspellings or inconsistencies in the data. Your feedback and/or votes are greatly appreciated! -- NEW - updated to use byte arrays instead of strings, 50-300% performance improvement! An implementation of the , Ratcliff/Obershelp/Levenshtein method.
This will uppercase the first letter of a every word in a string. For Example "this is a string" -> "This Is A String". You need only 1 line of code.
Converts two character strings of A-Z or AA-ZZ into integer equivalents. Example: User inputs "A", returns 1, user inputs AE, returns 110 and so on.
Several examples on how to totally manipulate a string. How to Reverse Strings, Add Spaces, make a string "Elite", etc. Also demonstrates how to get letters from a string and add to them or remove them. It is heavily commented and should really help a lot of people. Cool stuff. (:
Just a little snip of code that lets you trim a specified number of characters from either side of a string.
Allows you to parse strings like those excel spread sheats. Example : Text1.Text = "Me,You,Us" MsgBox(Parse(Text1.Text, ",", 1)) Would return "Me"
Compares a string to a list of items in another string, and returns how many matches are found
This sample demonstrates a text effect whereby text drawn on the form expands and contracts (i.e., the width and height are continually increased then decreased). For more my code samples visit my personal web site: click above on my full name.
THIS VERY COOL FUNCTION TAKES A NORMAL STRING AND CONVERT EVERY CHARACTER IN IT FROM UCase TO LCase OR FROM LCase TO UCase... CHECK IT OUT!! AND VOTE IF YOU FIND IT USEFUL
This Moves a Forms caption from left to right.
The passwords typed in a textbox can be read even if the * appears. But there is a way to prevent this. This is why i created this code. It prevent users from using programs like Spy to read the password (http://come.to/kobik) if the URL don't change.
This function takes tag delimited text and converts it for display in a richtext box. Great for email headers (from, to, subject lines). Someone Rank this Thing...Enjoy!!
This code show you how to count the letters, numbers, characters ("A","b",etc.), Spaces, Word's, Lenght, etc. in a text.
Sort arrays much faster with a better string swapping routine! Wow, I couldn't believe all the rewrites of the same sorting routines in PSC. "Look at mine", "No, use mine", yadda, yadda, yadda. They all use the horribly slow: vTemp = String1 String1 = String2 String1 = vTemp Geezzzz - When you have to sort 30,000+ strings this is slllooooowwwwwww. Here's a solution. It uses the the same sorting routine (or choose your own), but implements a much faster swap routine using the CopyMemory() API. Now, instead of swapping strings, which in my case could be up to 9,000 characters, you are only swapping a 4 byte memory address. Rock On!!
This is a subroutine to automatically wrap a text string in whole words to a printer.