Results for "Category: String Manipulation"
' 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).
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.
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.
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!
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.
Get the current username from Windows
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.
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..
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)
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)
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.
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.
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. (:
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!
This program has a TON of String Manipulation, showing several examples of virtually every String Manipulation technique. Very cool! Check it out.
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
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.
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.
This one-line function returns whether or not a string consists of only the characters A-Z, a-z, and 0-9.
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:)