Advertisement

Results for "Category: String Manipulation"

2002VB #22904
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.

2002VB #22916
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.

2002VB #22930
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.

2002VB #23065
AI Chatter Bot

It has 5 different ways of finding an answer and can even learn. It breaks ur sentence into an array, removes minor words, rearranges the sentence, everything. It demonstrates file parsing, string manipulation, file append, file input, file output, learning. Credit must goto the maker of michael the AI chatter. The interface is pretty similare, the functions are pretty similar, the code is pretty imilar. My prog just concentrates more on getting an answer so it should be better at talking. You can write your own question file and join it to the main one using the Import File Feature (with progress bar). To see the list of copyrights see the author of Michael the AI Chatter.Ask it what its age is, theres a small bug in that but its still cool.

2002VB #23066
AI Chat bot *BUGS FIXED*

Ok, this time all the bugs are fixed. Apparently it was giving file errors (Not for me) but thats fixed now guaranteed. If you asked it its age it came out wrong, fixed. Apparantly somebody said one of the files was missing. ell I ve double checked this time.

2002VB #23093
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.

2002VB #23095
String Maker V1.1

Updated to v1.1, Fixed few bugs. I always feel I loose a lot of time formating my msgbox strings. String Maker is a program that formats your "normal text" into a variable string usable in visual basic. Lets say, for example, you want a msgbox to show this: ------------------------------------- Warning: The "input" parameters found in the data size field can generate a general protection error ------------------------------------- String maker will format it for you to just copy and paste like this: MyString = "-------------------------------------" & vbNewLine MyString = MyString & " Warning:" & vbNewLine MyString = MyString & "The " & chr(34) & "input" & chr(34) & "parameters" & vbNewLine MyString = MyString & "found in the data size" & vbNewLine MyString = MyString & "field can generate a" & vbNewLine MyString = MyString & "general protection error" & vbNewLine MyString = MyString & "-------------------------------------" Then you could use it like: MsgBox mystring It also has the capability to create SQL table strings: MyString = "CREATE TABLE [tblThisTable] (" MyString = MyString & "[fldBinary] Binary(20)," MyString = MyString & "[fldBit] BIT," MyString = MyString & "[fildInteger] Short," MyString = MyString & "[fldText] Text(240)" MyString = MyString & ")" All you have to do is execute the string like dbobject.execute mystring. And, as always, it also shows the use of MDI projects, menus, tray icon, popup menu in the tray icon, selections, etc... You are allowed and encouraged to continue this project to grow its capabilities... just keep me informed. Thanx to the guy of the tray area control. Note that you must use the exit menu command to close the program, since pressing the X button in the window's controls will just send the program to the tray area... Pretty much like audiogalaxy. -Fongus

2002VB #23152
Text Manipulation

This code show you how to count the letters, numbers, characters ("A","b",etc.), Spaces, Word's, Lenght, etc. in a text.

2002VB #23189
Word Wrap Printing

This is a subroutine to automatically wrap a text string in whole words to a printer.

2002VB #23238
calculate the EAN ( barcode) check digit

ever made a program capable of showing barcodes ? if you did than you`ve been there ,,, at the oficial EAN standards site,, than you would have seen how to calculate the check digit. they hold the standard they publish that standard also on their website ,,, http://www.ean-int.org/index800.html i never found code in VB that calculates the check digit ,, so my conclusion is that it was hold for comercial reassons ( there are lots of controls out there for a lot of monney :-) so i donate this M. Posseth code to the public and make it public domain ,,, uhmmm votes would be apreciated :-)

2002VB #23251
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!

2002VB #23256
Easy Tokenizer

Break up variables in a string, whatever separator is used.

2002VB #23265
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

2002VB #23350
Squeeze

Removes extra spaces from given string. eg. Squeeze("^^too^^many^^^spaces^^")returns "too^many^spaces". NB.Read a carat ^ as a single space above. Planet Source code mangles multiple spaces in submitted text.

2002VB #23523
Lightning Fast Word Counting

A small ultra-fast function used to count the number of words in a string.

2002VB #23524
Learn How To Make VB Handle Strings As Fast As C

If you want your strings routines to be as fast as possible, learn C. If you don't want to learn C use string mapping, its nearly as fast and pure VB. In this article I give you the silver bullet for strings. If strings are bottlenecking your code, I'm your new best friend. I've included a project that attempts to visualize the string for you. It also contains a word count comparision which uses four methods string mapping being the fastest by far (compiled).

2002VB #23598
PadString Any Side

Pads a string with any character you like. I usually use it to pad numbers with leading zeros. But you can use it for other things.

2002VB #23610
UNICODE From ANSI Pointer

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

2002VB #23618
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!

2002VB #23676
_Word counter 100% Error free! I dare you to find a flaw!

Not like other cra*py word counters. You cant fool this one. Here are some errors i fixed that i saw in other word counters. If you still see an error in mine please inform me! 1) In some counters "This is a test" will read 10 words. Why? it counts the double/triple/etc... spaces in between. 2)On some if you add spaces to the end, it wont count them as words 3)It counts the first word, unlike some 4)Commented 5)If you add spaces to the beggining of the word it wont count as an extra word. 6)Typing no text will not result in counting 1 word unlike some counters 7)typing all spaces will not result in 1 or 2 words unlike some. Well there are the errors ive seen and fixed, please inform me of more errors if you spot them.

Languages
Top Categories
Global Discovery