Advertisement

Results for "Category: String Manipulation"

ASP_Volume2 #36055
Advance TCP/IP Text Box

A textbox for TCP/IP or DNS entry with validation and formatting. It behaves like Windows TCP/IP entry. Very nice in developing program that requires valid IP entry.

ASP_Volume2 #36114
How to use VB's InStr with a String

This example I put together teaches you how to use the InStr function with a string. InStr is very important to use because you can get certain information from a String by using it. Example: say a String has your first and last name in it like "Mike Canejo". InStr allows you to get just the last name or first name. First and Last name are just an example. You could do tons of things with Instr. This is very important for a beginner to know trust me. You'll be surprized if you end up using it in your next vb project :)

ASP_Volume2 #36117
Autosize a Label Caption

This small and very simple sub will format the caption of a Label control if the text is too big to display in the control. The sub will trucate the text and append "..." to the end of the text (indicating to the user that they are not seeing the full text). VB automatically wordwraps the caption of a label if it is too big, however, this results in the caption being truncated only where there is a space. Also, you can see the top of the next line of the caption. Example Make and Model: Cadillac becomes: Make and Model: Cadillac Eldor... I find this extremely useful when I don't know the maximum length of the text the label will contain, or if I don't have enough screen real estate to make the Label big enough. Just pass a label to this sub for formatting.

ASP_Volume2 #36146
IsNullEx

This code provides an IsNull function like that used in SQL Server. This allows you to check if a variable contains null, and if so return a specific value. This can prevent you from having to write things like iif(not isnull(rst!FieldName), rst!FieldName, ""). For new programmers, especially those working with databases, you will quickly become aware that trying to access a database field that contains a null value often results in the dreaded error #94 - Invalid Use of Null, which means you constantly have to write code to trap for that possibility.

ASP_Volume2 #36245
Convert RichText to Encrypted HTML!

This is an incredible program that lets you generate encrypted self-decrypting HTML files! It converts RichText to encrypted self-decrypting HTML files! Just type in your message in RichText format, choose a Password, and it automatically encrypts your message and generate that self-decrypting HTML file. Cool! How do you get the files decrypted? Simply with any IE browser, open it, type your Password, and you'll have the message automatically decrypted!

ASP_Volume2 #36246
Eval (Evaluate String Expression) *REPOST*

This is a recursive function that evaluates strings expressions. It supports multiple levels of parenthesis, algebraic evaluation of expressions (in this example exponentiation ^ has same level of multiplication and division), function calls, logical operators, string/date/numeric functions and expresion evaluation. This is the base for the creation of a scripting language.

ASP_Volume2 #36356
Calculate Age in ymd

I needed a routine to display the difference between two dates in year month day format. I found a couple here on pcs and another on a different site. Here is a project to call the three routines and display their results side by side. In case your wondering about Datediff it returns the number of times the year, month or whatever has changed between the two date. i.e. it returns 1 when from is dec 31 yyyy and to is jan 1 yyyy+1. Anyway here are three routines, two of them worked in all the test conditions I tried, the other gets a wild hair up it rear every once in a while. Louis Boldt 2/16/02

ASP_Volume2 #36410
UNICODE From ANSI Pointer

The Most difficult Thing in VB..How to Get UNICODE From Pointer Of Ansi String..

ASP_Volume2 #36414
Splitting Strings

The purpose of this article is to teach the reader how to split a string into fragments and use the fragments effectively. Useful for Winsock programs, date commands, and other possible needs.

ASP_Volume2 #36424
Word Frequency Analyser

Paste the contents of a plaintext document into the main multiline text box, click "Parse," and this program creates an array for each unique word and the frequency at which the word occurs in the string. I made this to check my own writing for over-used words; if you're a writer you may notice how you tend to use the same words over and over again; in conjunction with a thesaurus this could be a powerful tool to liven up your use of vocabulary.

ASP_Volume2 #36446
Smart Flex Input

Ever too tired to control user's input? Ever want to control maxlength of a combobox? Ever want to validate and correct and hint(optional) user's input automatically? This is what you need to control user's input with textbox, combox etc. I am working on it and have figured out many improvements that can be done if you are so kind to rate it! Any comment or vote is appreciated! Please vote for it if you guys desire a much better version :-)

ASP_Volume2 #36456
Regular Expressions

Regular Expressions - match strings. *,+,?,[0-9],[A-Z], read note on the initial form code. Requires a reference to vbscript.dll. Only works in VB6.

ASP_Volume2 #36477
FormatFileSize

FormatFileSize: Formats a file's size in bytes into X GB or X MB or X KB or X bytes depending on size (a la Win9x Properties tab) * UPDATED Sept. 12, 2000 * to allow for overriding the default Format Mask.

ASP_Volume2 #36495
Bubble Sort

This code should explain the bubble sort ! Bubble sort is a sort algorithm that sortes string in very fast way. There are many sort algorithms but this is the best !

ASP_Volume2 #36592
StringFX v2.00

(PLEASE ALSO LOOK AT VERSION 2.10!)This code is an example of 13 different FX that can be easily implemented to a string. I have put them all together and put in quite a few notes explaining what each FX is doing. As you can see from the screenshot each effect can be modified in certain ways. I have written this so that you can have a better understanding of how computers work. I have tried to avoid using many of the built in functions. Each FX may not be the most efficient way of doing them, but I have done it this way to highlight the internal workings. All FX (apart from Rotate) work at a character at a time. Please send in any comments you may have - Good or Bad - so I can improve on it further. If you have any questions then email me. PLEASE RATE THIS. Thankyou.

ASP_Volume2 #36632
Drag and Drop Example

This is a basic drag and drop demo. It is written to recognize what type of file is being dropped and only excepts exe's but you could modify it to excpet any file extension. I think I commented the demo well enough for everyone. I hope it's ueful. Saturday, March 31, 2001 I added a few more lines of code for the ".EXE" statement because there are 2 kinds of exe's! Upper case and Lower case! It sounds funny but i have both kinds of exe's on my machine so i thought i better fix this little bug! I Also added a Progress Bar! Peace, jim byrnes

ASP_Volume2 #36773
_Kyoko teach you string manipulation in 60 seconds_

This code shows almost all usefull function for string manipulation. Easy to understand, Easy to implement! Every line of source code with comment and 1 command button done all the functions in the text boxes.

ASP_Volume2 #36791
Bobo RTF Tricks

Syntax coloring, advanced selection routines and Highlighting. Highlighting using the Richtextbox control is awkward. Whilst there are a host of Selection properties there is no Highlight property we can access from VB. We just have to parse the RTF code.

ASP_Volume2 #36796
Quick Levenshtein Edit Distance

Levenshtein edit distance is a measure of the similarity between two strings. Edit distance is the the minimum number of character deletions, insertions, substitutions, and transpositions required to transform string1 into string2. In essence, the function is used to perform a fuzzy or approximate string search. This is very handy for trying to find the "correct" string for one that has been entered incorrectly, mistyped, etc. The code has been optimized to find strings that are very similar. A "limit" parameter is provided so the function will quickly reject strings that contain more than k mismatches.

ASP_Volume2 #36824
a random password generator

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.

Languages
Top Categories
Global Discovery