Results for "Category: String Manipulation"
This code delete duplicate records in MSAcces database.
This is a program to make totally random passwords out of letters, numbers, or both. Shows how to convert strings to lowercase, make a scrolling, typing, caption effect and how to use random numbers.
A very simple tutorial on how to print report using crystal reports in VB.NET
Takes a number and returns a word expression for that number. Example: 123.01 returns "One Hundred Twenty-three And 01/100". Very useful for printing checks.
Get the statistics of your code. Find out exactly how many lines it is. It is easy to modify this project to include other file types etc.
This will get various statistics about your code, from how many blank lines you have, to how many variables you have declared. This is basically the same as my last version (Code Statistics v3), with a few improvements on the code scanner, and a new feature that lists the amount of variables you declared but never used. Just a note though, it will also list any unused event parameters. Let me know what you think - Eric
This function takes a long string of text, splits it up into lines for printing or displaying, then returns the new string. Like the newspaper, it doesnt cut off words, it carries them over to the next line. It includes a function to check for the longest word so you dont accidently ask for a column width smaller than your largest word.
Shows how to get recordset data into a VB (or other) application from remote databases on the web, edit it, and put back the changes - all from simple ASP pages on the server via HTTP using ADO + XML - 1 line of code in VB to retrieve, 3 to return (+ not more than 25 lines of ASP on the server) for the simplest case. Requires :IE5 (IE4 will not work!), ADO 2.5+, XML (3 preferred) on Client PC / IIS4+ or PWS, ADO 2.5+, XML3 on Server
cool word proccessor that can read what u have wrote ,font size font color bold....
Simple and easy to use Bruteforce Class, Very stable and you can more the form. No program freezes. Also Includes a working example of how to use the class. The example is just a test form that calculates how fast your computer can calculate combinations. Please Compile and post a benchmark. Runs twice as fast compiled.
Drag and Drop a Free File onto the List Box. The Application opens the File as Binary and loads it into Buffer Space and scans the contents for Virus Strings. Very easy to do, and commented. It only does a single file right now, looking to add Directories upcoming.
This sample demonstrates a text effect whereby text drawn on the form expands and contracts (i.e., the width and height are continually increased then decreased). For more my code samples visit my personal web site: click above on my full name.
Filter a string and return numbers or characters
[NOTE: THERE IS A NEWER VERSION] This routine shows how you can process nested search-replace operations on large strings (megabytes) with VB. The program accepts a text-file as input and will output a colorized RTF file. Nothing new about that, but this program will generate large RTF files really fast because it uses a text buffer for string processing. You will see the difference if you try to colorize a 500+ kb XML file, most (all?) other 'colorize' programs on PSC that use native VB will fail on large files.
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 (bambi@crackdealer.com) Money, rewards, bugs and .. can be send to me (please!) SEE README.TXT
As a beginner my biggest problem ever was not being able to split a string and i didnt really learn how unil a while ago. splitting a string can be very useful for winsock and data storage type stuff. This works by putting a plus sign (+) between the two peices of data and splitting them based on that. Note: this uses a VB6 function so it will only work in VB6, also note that this code is in the begginer section so dont be a punk. - nerd (www.nerdwareinc.com)
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!)
I hope I'm not the only person who wants to cringe every time I see something like "You have been online for 1 minutes." 1 minutes?? I see this kind of thing everywhere; here on PSC, even. It looks very unprofessional to me, and it's so easy to fix! That's why I listed this code as beginner level. Hopefully, Planet Source Code will implement this code and I won't have to see that I got an excellent vote from "1 users." ;-) I would like to hear any comments you have about this code. Also, please click to see my other submissions to PSC. My latest program, Music Maker is nearing the top of the Code of the Month list. If I can get a few more votes it would really help me out! :-) Thanks for looking!
This Function Searches a user defined string for a user defined search criteria it will return the postion of matchs in an array also will replace or remove criteria from string
Takes any numerical value (less a billion) like "203463110" and outputs "Two Hundred Three Million Four Hundred Sixty Three Thousand One Hundred Ten"