Advertisement

Results for "Category: String Manipulation"

6_2008-2009 #203849
Simple Bruteforce Class (Very Stable)

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.

6_2008-2009 #203866
Virus Scanner (Real)

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.

6_2008-2009 #203888
Expanding/Contracting Dynamic Text

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.

6_2008-2009 #203910
Filter numbers or characters from sting

Filter a string and return numbers or characters

6_2008-2009 #203952
Fast Colorize HTML / XML

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

6_2008-2009 #203953
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 (bambi@crackdealer.com) Money, rewards, bugs and .. can be send to me (please!) SEE README.TXT

6_2008-2009 #203958
_Split string into 2 strings_

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)

6_2008-2009 #203979
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!)

6_2008-2009 #204062
Plural Check (extremely simple, very useful)

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!

6_2008-2009 #204068
Find/Replace/Remove Function for long strings/text files

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

6_2008-2009 #204120
convert/write a number in words

Takes any numerical value (less a billion) like "203463110" and outputs "Two Hundred Three Million Four Hundred Sixty Three Thousand One Hundred Ten"

6_2008-2009 #204169
ASP Code Generator

the engine i am providing is an asp code generator that i am currently using on my website (www.intratelligent.com) to allow asp developers to upload access databases online and build simple asp interfaces to interact with their data. (insert / update / delete and reporting functionality). although it is coded in vb, it can be compiled into a dll to be used as an object referenced by asp. otherwise it can be run as a stand-alone vb app. i have included a screen shot and added commenting to my code to make it more understandable. if you do not have a lot of experience in vb and asp this will be difficult for you to modify although it can be implemented by anyone.

6_2008-2009 #204202
username/userpassword

Hello, This is a complete security small webpages I'm using ASP. It allows users to enter their username/userpassword, in order to go further into your webpages. It also allows new user to creates a very simple account like: User's FullName, User's nickname and User's password. I hope that it will gives you lot of ideas to program better in ASP. Thank you for using this Tri Nguyen PS: Please dont forget to give me a feetback and drop me a line to my e-mail address at: trigwc@hotmail.com my friends!. Thanks again

6_2008-2009 #204297
UPDATED: - Optimizing VB String Parsing – Using Byte Arrays and Binary Searches

Optimizing VB String Parsing – Using Byte Arrays and Binary Searches to parse and color code

6_2008-2009 #204349
Wildcard Matcher

This code matches a given string against a pattern which may contain the well known wildcards * and ?, whereas * represents any number of characters, including none, and ? represents any single character. You may want to paste the code into a class module :)

6_2008-2009 #204356
Building a SQL Search Query--Easily

This article explains an alternative to the boring string parse/loop method of building a search query for your website.

6_2008-2009 #204374
Remove HTML + Optional Ingnore Tags

This function will strip a string of all html. An optional parameter (sIgnoreTags) allows specified HTML tags to be ignored from stripping.

6_2008-2009 #204375
SQL Web Query

SQL Web Query using ASP.Net with VB.Net code behind. This is my first project with the new studio; I think this shows the intention of separating the presentation code from business logic. I have previously never done any ASP work so this is from a VB programmer. USES: ASP.Net, VB.Net, ADO, SQL DataAdapter and the web Data Grid. SETUP: Pretty simple really, all you really need to do is modify the connection string and you should be able to use it. For development I was using the Northwind DB from an SQL server. In the readme.txt I give more info on the setup. If anyone has a problem let me know, I hope I included all the right files. Enjoy

6_2008-2009 #204421
Unufri Online Service Directory

This is a huge 40 Page database access application that is approx 2500 lines. Check it out for your self... The commenting is very sparse and not explanatory but if you have experience you should be able to understand.

6_2008-2009 #204469
Allow Numerals Only

After looking here and a few other places for a simple code that allows only numerals and not to allow text to be pasted into a textbox and with no prevail I figured it out. Not a major thing but for beginners this will help them.

Languages
Top Categories
Global Discovery