Advertisement

Results for "Category: String Manipulation"

2_2002-2004 #119565
SpeedString concatenation

The SpeedString class boost performance on string concatenation. Almost every VB developer uses strValue = strValue & NewData as concatenation. The SpeedString class does the same, but a few hunderds times faster (something up to 1000 times). This project demonstrates the use of my SpeedString class and compares the execution times of both methods.

2_2002-2004 #119590
[HM] String Parse

parse a string with a delimiter... choose your own delimiter and replace it with whatever you want to. Very basic.. but it works. :)

2_2002-2004 #119599
Convert VB Type, API and Enum -> VC++ ODL (With Colorization)

The ODL Converter Project is designed to take VB Types, Enums and Declare Statements and convert them into a format used by Visual C++'s .odl files (odl = Object Description Language). This also shows how to colorize code, for those who are interested

2_2002-2004 #119603
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 :)

2_2002-2004 #119611
Simple base64 Example

Simple base64 Encode/Decode example. I didn't write the module. It was written by these guys at www.di-mgt.com.au - They have this really good example of base64 plus crypto examples.

2_2002-2004 #119614
Functions on Strings. Those seem to be difficult but are actually very easy.

Functions on Strings. Those seem to be difficult but are actually very easy. Count Characters, Vowels, Lenth of String etc.

2_2002-2004 #119629
Shell Sort * FIRST ARRAY ERROR Fixed

Shell sort is a greath sorting method,but I find "FIRST ARRAY BUG" after resorting array list,and fix it! See The Different beetween SHELL and BUBBLE!

2_2002-2004 #119633
Format Fancy Number (##st, ##nd, ##rd, ##th)

This function adds st, nd, rd, or th to the end of a string of numbers based on what the number is. For example, the following code can produce the following output, "Thursday, November 23rd, 2000" : Format(Date, "dddd, mmmm ") & FormatFancyNumber(Day(Date)) & ", " & Year(Date)

2_2002-2004 #119652
A Daitch-Mokotoff SoundEx Function

Complete, ready to use, SoundEx function to encode a passed alphabetic name and return a six character Daitch-Mokotoff code following the Daitch-Mokotoff (D-M) rules available at the sites listed in the source code. The D-M algorithm resolves some deficiencies that occur in the older Miracode/Soundex system (also known as the "Russell"/NARA system - used by the US Census Bureau). The benefits include: 1) Six meaningful letter sounds (versus four so that Peters is different from Peterson). 2) The initial letter is also sound encoded. 3) More sound variations (10 basic codes versus seven and double code sounds). 4) Improves sound matching for Jewish, Slavic, and Germanic names. Coded as a VB module with Public SoundEx function. Uses simple visual basic coding, and should be usable in anything supporting VB/VBA. Code Zipped because it is a complete module. Code commented

2_2002-2004 #119762
InStr for lists

will search a listbox's contents for a string returning a True if the string exists and a False if it dosent

2_2002-2004 #119763
Add Item to listview

takes a string like "Johnny*(722)555-5555*35" and splits it into columns on a listview control(designed for Report view)

2_2002-2004 #119783
String Control

This code can do many modifications to a string. (See screenshot for more details). I was tired of seeing programs that showed only one string modification so I programmed something that could modify a string in more than one way. (Code is explained).

2_2002-2004 #119804
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.

2_2002-2004 #119835
A Function that removes all of a chr from a string

This is a fairly basic code, but I had someone ask me how to do it, so I figured since I made it I might as well post it. Basicly this is a simple function which you can add to either a bas, or a form, and then you call it, and it removes all occurenses of a character within a string. IE.(My name is steve) if you wanted to remove all the spaces you could use this.

2_2002-2004 #119840
Rich To HTML

A function that converts rich text to standard HTML with the use of calling one simple function. Example form included. NOTE: The Microsoft RichTextBox Control is required.

2_2002-2004 #119842
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.

2_2002-2004 #119856
ReadFile

Read an entire text file into a string in one call.

2_2002-2004 #119913
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.

2_2002-2004 #119924
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!)

2_2002-2004 #119969
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.

Languages
Top Categories
Global Discovery