Advertisement

Results for "Category: String Manipulation"

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

Java_Volume1 #95962
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

Java_Volume1 #96016
UNICODE From ANSI Pointer

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

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

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

Java_Volume1 #96052
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 :-)

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

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

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

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

Java_Volume1 #96238
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

Java_Volume1 #96379
_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.

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

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

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

Java_Volume1 #96449
Conspiracy Generator

Shows Random Number Coding, Case Select and a good for next loop with Listbox. Also a simple counter. Combines words into full sentences. Fun program too, sort of funny, but some generated conspiracies may be TRUE (ewwwww - spooky). Feedback appreciated.

Java_Volume1 #96537
L/UCaseKeyPress

Use these functions in KeyPress events to format user entries as entry is typed. UCaseKeyPress() converts key pressed to uppercase while LCaseKeyPress() converts key pressed to lowercase.

Java_Volume1 #96544
Caption Scroller - IMPROVED!

This Code will Scroll the title of your window(s) like Winamp To the left OR to the right.

Java_Volume1 #96576
Typwriter 3.0

It typewrites any text you choose at any given speed

Java_Volume1 #96594
Add Undo/Redo buffer in your application

Provides functionality to have a buffer of Undo's in your application so users can go back as far as they want and redo their actions again....

Languages
Top Categories
Global Discovery