Advertisement

Results for "Category: String Manipulation"

Java_Volume1 #92766
Reg Key Demo

Generates and Validates a 25Character Registration code. Extensive integrity checking on the validation process to ensure only the original key values can be validated. Well commented and easy to follow.

Java_Volume1 #92777
Speed up code with a factor 1000 using string buffering!

The purpose of this code is to prevent performance leak when repeatingly appending text to a string "the normal way" eg. string1 = string1 & "text". By using stringbuffering you allocate a large ammount of zero-bytes to your string, and then uses the mid function to insert the text you want to append. The biggest gain by using stringbuffering is that you speed ud your code by a factor 1000 but it's allso harder to get your code to crash with a "Out of memory" error (IF YOU LIKE THE CODE, PLEASE VOTE!)

Java_Volume1 #92822
Fastest String Concatenation Yet In Visual Basic

This is the fastest string concatenation method you'll ever come across in Visual Basic. I use a novel buffering technique that leaves the competition choking on my dust.

Java_Volume1 #92841
Lightning Fast Word Counting

A small ultra-fast function used to count the number of words in a string.

Java_Volume1 #92857
Convert language query string into SQL statement

"PARSE" function converts search string (like in altavista/with pluses, minuses and quotations) into SQL query string for database search. To make this work in your database, you need to replace "table" and "field" words with appropriate values for your database. It's done in VB6 but will work in other versions as well.

Java_Volume1 #92871
IRC TO RTF (Rich Text Format)

Converts IRC text to RTF and displays it in a RichText Box. Supports everything.

Java_Volume1 #92910
Fast Colorize 2 for HTML / XML / XHTML / SGML / ... source viewing

This function accepts a text-file as input and will output a colorized RTF String. Nothing new about that, but this program will generate even large RTF files very fast. You will see the difference if you try to colorize a 500kb XML file. You may add the modules to your code to add HTML/XML/XHTML source viewing capabilities. The code has gotten quite complicated, but the adjustable parts are documented. (changing colors, or the tags that need coloring). You can for example color all tags red. This is version 2. 2001-11-24 Changes: [-] Twice as fast. (500kb/s. on PIII450) [-] Added a cAppendString class instead of using Mid$. [-] Fast string space allocation by API calls. String pointer swapping. (Thanks to VBSpeed) [-] Now uses Regular Expressions to color the 'inside' of tags (THANKS to Gary aka RegX for the idea to use REGULAR EXPRESSIONS. You can download similar projects from RegX here on PSCODE) [-] Added a RTE control to speed up viewing. CREDITS AND COPYRIGHT: MartijnB ([email protected]) Money, rewards, bugs and .. can be send to me (please!) SEE README.TXT

Java_Volume1 #92920
VB Colorizing class

This is a class that allows coloring VB text. Could be modified to do the same for other languages. It is in a sample project that demonstrates its use. It needs some further work to resolve parentheses situations. The ideas of many PSC authors are used here. Please post improvements you make to this code. Have fun!

Java_Volume1 #92928
Token Parser

Allows a programmer to manipulate a string of tokens such as: "Jane;Paul;Harry" or "Name:Paul;Age:21;Gender:M". Note that this routine allows for individual tokens or for tokens that have a key attached. Tokens can then be retrieved by position or key.

Java_Volume1 #92990
Strip Characters from a string

This function is to strip all instances of a character out of a string. Its fairly compact and simple. Hope its helpful to someone. :)

Java_Volume1 #93023
File String Search

Search a directory for files containing a specified string and return a list of such files. Once again, I've uploaded this in response to a quetion posted in the Discussion Forum.

Java_Volume1 #93082
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.

Java_Volume1 #93187
Binary to Text converter

This code is a simple Binary String to Text String vice versa program. It shows how to convert a asc() number to a binary string and reverse.

Java_Volume1 #93195
Text Table Generator

This code lets you easily create text-tables for text documents or even comment-formatting in VB. This will automatically center your text in the table. *No error checking has been added, sorry!

Java_Volume1 #93244
A Fully (i hope) string manipulation example / tutorial... InStr / Replace / Split / Join / strComp

Utilises a lot of the string manipulation commands to do just about anything with a line of text. Some of the more advanced functions i learnt as i went along, so they arent gonna be particually perfect! I hope this should be more or less bug free tho... I designed this to be for beginners / intermediatte needing a hand geting going in this field. Im sure other people are gonna have string manipulation tutorials already on PSC, but what the hell! have another one... :) Beginners: if you have any problems getting the code to work, email me at the address at end. tHE_cLeanER

Java_Volume1 #93252
Validate TextBox

tis is a simplest way of validating user input. Yust open the project and press F5... check TAG properti in text boxes... You can program validation in RUN TIME or at DEVELOPMENT TIME...

Java_Volume1 #93334
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!

Java_Volume1 #93354
A "String Replacement" Function

I know there is the replace(text1.text,"Jack","Jill") in VB6 which would find all the words Jack and replace them with Jill in text1, but how can I do this in VB5? I want to be able to put symbols in general sentences, and replace the symbols with specific data. such as: Thats a great pass from #! He passes to # who sets up a shot!

Java_Volume1 #93426
Encryption Wizard 2.3

Changed the interface a bit, made the labels for the menus into textboxes so they can go *over* the rich text box, thus letting me make it bigger. Added the ability to password protect the program, (the password is encrypted then flipped backwards), and there is now a "QuickCrypt" function that lets you select a file, encrypt it, then save it, without using the open then save and so on options from the menus. Still trying to figure out compression! If you have any idea on how I could get a *nice* way of compression for ALL 255 characters, aside from using the zlib dll, tell me! If you have not seen the other version of this program, 2.2, this program encrypts all 255 characters in a decently strong way. Oh, also added the small part to see that time it took to encrypt the file, it slows down the process though!

Java_Volume1 #93432
KIKE Doc v1.2

This program search a string in multiple documents at the same time and lets you open the match documents from the program. I`ve had add some new features like select the extension of documentes, view only the 10 first matches and save the configuration to use in another sesion. I`ve fixed the program for this usefull version. Thank yours for this chance.

Languages
Top Categories
Global Discovery