Results for "Category: String Manipulation"
This is a series of Has.. Codes. It will search a textbox for the following: Lowercase letter, Uppercase letters, Numeric Characters, and Accented Characters. So, if it has lowercase letters or something, it will display a message box. this is a good example of how to use for..next loops, ASCII codes and the Instr Function, then again, this might be a lousy example, you be the judge.
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.....
To split a string into pieces using a certain character as a delimiter. I do not want to get messages saying, "use the Split() function" as this isn't present in VB5. Example of this is "hello to you", with the delimiter as " ". You'll get back 3 variables, one containing "hello", one containing "to" and one containing "you"
When called with a string, will search through the string and replace a character of your choice with another character of your choice. For example, if you sent the string: "Hello to the world" And sent "o" as the character to be replaced, and sent "a" as the replacement It will return you with: "Hella ta the warld".
This is a one line code snippet to extract any section of a string using the Split() function. You can actually return the indexed section right in the same line as the Split() without having to assign the Split() to an array.
This code is the first posted on Planet-Source-Code to do more than just ADD and GET INFO from INI files. You can now also DELETE Keys, Values, EVEN SECTIONS. I am working to create functions to rename sections and keys also. Enjoy this code! Fully explained!
Generates a random string of numbers, letters and symbols, then places it in a string. Once this has been done 3399 times (or times set by user) it writes the string to a file under the variable filelocation
Splits a string into an array. If you send a " " it will split all the words into each array position.
**This is an update of my previous submission.** What's New? Various speed-ups. (40k-80k to 150k-250k passwords/sec). Got rid of string concatenation replaced with Mid$ function. Made password producing function an "inline" function, no more repeated calls. Fixed bug that wouldn't let you close the form even if you hadn't started generating yet. No more version numbers, just date of release.
This is a "password generator" that can (on my puny PII 333mHz computer) generate about 40000-80000 passwords per second (number varies based on password length). This project was inspired by this Planet-Source-Code post: "Fast BruteForce Class Example" by §e7eN. http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=48276&lngWId=1 and by various websites, code snippets, and newsgroup posts. I have no interest/knowledge in using this to break into anything or do any harm. I'm do love the logic behind such challenges. Though, I'm sure I'm at the pre-k level when it comes to serious string manipulation.
This is just a trivial little app that creates actual rainbowed colored text (unlike that ubiquitous random colored letter code). See the README.txt for more info on the color conversion functions.
Replaces a character in a string with another character. Pretty simple to understand. Uses a For...Next loop.
This is my MySpace Clone sample source code using PHP + MySQL. If you like my code just vote for it.. Have a nice day..
This code with scan through a string looking for a delimiter of your choice, and will put the text inbetween the delimiters into seperate elements of an array.
Hi this is a project that will allow you to open a bas file or form and list all the function in a combo box. then you can select the function name form the combo box and it will display that function in a text box. at this time it only works in function names eg function centerform(frm as form) but you can change it to do other string like sub or private subs anyway have a look at the example.txt I have left in the folder and open that up and you will see. anyway I hope that someone might find some us of it please vote if you like it... bye... :)
Hi this is a little String Manipulation project I made To help beginners understand strings and people at other levels I have included all examples of each function to make it easyer. Sorry I have not included many comments if any but I was bussy at the times working on another project anyway I hope you get some Ideas from it. please vote if you like this code and level comments.
Hi made this in the hope that it may be of some use to any one, that wanted to know how to write a Basic Lexical. The meain Reason I made it was to build a small simple Compiler, But you may use it for a scripting lanuage or anything you want. Well I Hope you like it.
This is a very small String tokenizer class, that can tokenize a string based on a patten, usfull for evalulators of anything else, anyway hope you like it.
Revised Roman Numeral generator. This version will in theory generate numbers in excess of 1000000 using the standard numbering conventions, i.e. 5000 is equal to a V with a line above and below..
Sample application/*.sln for beginners and intermediates using OLEDb. Other controls used are ListView, ListBox, and MenuItems. Also uses ArrayList as a collection holder for the entries in the DB. Comes with *.mdb file. Pretty good beginning point for OOD. Complete with Update/Delete/Add/Refresh SQL Commands.