Advertisement

Results for "Category: String Manipulation"

2002C #9393
A Pig Latin Text Converter

This code does nothing more than take a word or phrase and convert it to Pig Latin. Now, it is not finished, as I need to somehow figure out how to take in account punctuation. It is almost there, tho, and any suggestions would be nice.

2002C #9411
Add Colored Text to RichTextbox

Adds the text to a textbox, checking for length overflow. First, it checks, and if the textbox exceeds 15,000 characters, it strips out all but the last 2000 characters to make room for the new text. It doesn't break in the middle of lines - it only deletes 'whole lines.' Then it adds the text to the end, using the color you specified (if any), and scrolls to the end of the textbox. I use it all the time, got tired of cutting/pasting out of old projects, thought I'd put it here on PSC.

2002C #9421
One-liner - determine whether a string is alphanumeric

This one-line function returns whether or not a string consists of only the characters A-Z, a-z, and 0-9.

2002C #9468
a 10 line encryption/decryption program

This is a encrypt/decrypt program thats only 10 lines long!!! all it uses is 2 simple fonts to encrypt, times new romand for the text and Money for the encrypted text! please tell me if you like it:)

2002C #9477
Cipher/Decipher

Well I found parts of this code on the net but all in all, I wrote most of it. I hope that you like this. I added functions to copy and paste in this version. So please be sure to let me know how you like this code.

2002C #9497
Trim all those EXTRA spaces

VB forgot to add a Function strip out all those LEADING, TRAILING and EXTRA spaces in ONE Function. I have seen many attempts at doing this but think mine does it in the least amount of code. Note: = literal SPACE

2002C #9593
Rich To HTML

A function that converts rich text to standard HTML with the use of calling one simple function. Example form included. NOTE: The Microsoft RichTextBox Control is required.

2002C #9688
Get the binary inverse of a string

This code is the equivalence of the bitwise complement C opertator (~), except this only works on strings. I got tired of not having this capability, so I wrote it =)

2002C #9711
Uppercase The First Letter Of Every Word Inside A String With Only 1 Line Of Code

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.

2002C #9799
Registration Key

A little app that I made to generate a key according to username. Also this app will validate the key. This is a little bit more advanced. Most validation routines actually take the username that is put in, and generates a key for that. Then it will compare that and what the user entered. This leaves a big security hole because anybody with memory editors can actually use the actual program as the keygen. My app actually reverse engineers the key into a username then compares usernames. =) have fun and change it as you like. Also, please vote!

2002C #9828
Concatenate strings FAST with this class!

This code demonstrates how to use buffer concatenation via the Mid Statement for fast string concatenations. Buffer concatenation is much faster than the widely used "&" to connect strings and also faster than array concatenation. Use the supplied class module in your own apps to improve speed and efficiency.

2002C #9830
Find Strings in a Textbox

A sample VB program that demonstrates how to find and select words in a Textbox. Very simple but quite useful! Please rate!

2002C #9886
count down to zero with a given number

this is very simple and is for begginners... it askes you to input a number... it will then loop messege box's until the number is counted down to zero.... then it replies with another messege box that says... "thats all"...... (updated code#2)

2002C #9901
A Simple Encryption and Decryption function

I wrote this code to learn a little bit about string manipulation. Although I will deffinatly not claim it's uncrackable, it is deffinatly a little less bulky than some of the others. Not to mention since i submited the code anyone could just use the decryption on it. But anyway, it may be of some help, although I will admit it's a bit slow with large files. I am trying to find ways to improve it's speed. Any ideas are welcome.

2002C #9946
Convert long address to IP address

Converts a long address (2220112843) to it's IP address (203.59.84.132)

2002C #9968
Vampsoft: Parse Text Function

Parses a Line of Text, Great for Chats... Example Layout String = "[Hello] [This] [is] [an] [Example] [Layout]"

2002C #9997
Has... String Functions

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.

2002C #10086
A 'Parse' function.

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"

2002C #10087
A 'strReplace' function.

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".

2002C #10088
A Good 'IntelliSense' Function. (Auto-Complete) For TextBoxes

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.....

Languages
Top Categories
Global Discovery