Advertisement

Results for "Category: String Manipulation"

2002ASP #406
Find and Highlight Substring

' Given an editable textbox named Text1, this code prompts to find a word and ' searches throught the textbox and highlights the first occurance of the ' found word (if exists).

2002ASP #428
Count number of lines/returns in a textbox

Simply counts the number of lines in a textbox (the textbox should be multiline=true, otherwise it is pretty useless). Put this in a module so it can be reused.

2002ASP #432
A smaller encryption example

Takes a string and shifts each character in that string according to a password set by the user. Much smaller than most of the examples of PSC.

2002ASP #472
Combinations of a String

This is in response to a question on posted on the Programming Q & A section. It takes a string and fills a listbox with all combinations of the letters in the string (could be adapted to use a dynamic array, too, the listbox was better for demonstration purposes). This program use recursion to get it's results and may be a good example for someone learning the concept to step through. Warning: The number of combinations goes up exponentially! more than 8 characters will work but really bog down your PC!

2002ASP #487
Virus Scanner

This is kind of a Virus Scanner...It's to let you get the feel of a scanner which searches for strings a virus might have and then displays that it is a virus in a message box. Put this in a module and call it from like a button or something. I am only 13 so if you think this code is dumb or wouldn't work...sorry im still learning. E-Mail me at BmFWaLk316@Juno.com if you have any problems. Later.

2002ASP #489
CurUserName

Get the current username from Windows

2002ASP #502
A very simple Encrypt and Unencrypt

This is a very simple encrypt/unenceypt and when i say simple i mean simple. works for any string containg the normal chr's ie. (1-9,a-z). Works good tho for simple encrypt.

2002ASP #570
Do uppercase to first letters in every word.

Fixes a string.. from "chArlES IS BaCk!" and the results is "Charles Is Back!" easy to use.. and nothing to have.. ;-) made it for a request.. the StrConv() only function in vb6 i think.. i'm not sure.. However this works too if you want it..

2002ASP #602
Animation Caption.

Quick and Easy! without API. Only a few lines of code. You can scroll your Application's titles and form's caption. I hope you enjoy. G.B.R.Nilantha Athurupana. Wattarama,Imbulgasdeniya,Sri Lanka.(94-03744479, E-Mail: crysbro@cga.lk)

2002ASP #603
Animation Status bar

Easy! without API. Only a few lines of code.You can scroll your Status bar panel's text and You can modify suit to you.I hope you enjoy & your correctons,comments,Ideas are very gratefully. G.B.R.Nilantha Athurupana. Wattarama,Imbulgasdeniya,Sri Lanka.(94-03744479, E-Mail: crysbro@cga.lk)

2002ASP #639
Quoted-Printable -- Encode and Decode

Very fast function to encode or decode Quoted-Printable. VB6 only, but you can make it work with other versions, with a 3rd party replace function.

2002ASP #644
Display long text in tooltiptext in listbox

This code displays the text on the line the mouse is over in the tooltiptext box. This is useful for when your text string is longer than the textbox can display.

2002ASP #672
Total String Manipulation!

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

2002ASP #673
Easy £lî†ë Text!

I've had a lot of people ask me how to create "Elite" text or "Funky" looking text, so here it is. The coding is extremely simple and it's commented. No votes unless this really helps you or something!

2002ASP #676
TONS and TONS of string manipualtion!

This program has a TON of String Manipulation, showing several examples of virtually every String Manipulation technique. Very cool! Check it out.

2002ASP #780
a clean Text Encryption/Decryption module

This code will take your text and encrypt it so that it is completely non-readable. I am sure that is someone studied the output long enouch they might be able to break the code, but it would be tough. You can see how easy it actually is to encrypt/decrypt text. It cover all basic letters and most special characters. If you can see it on your keyboard then that character has been covered. Later versions of this code will be much more complex in the way it encrypts the text. and I may include a feature that will require a key to unlock the text. Have fun. Peace

2002ASP #789
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.

2002ASP #807
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.

2002ASP #817
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.

2002ASP #864
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:)

Languages
Top Categories
Global Discovery