Results for "Category: String Manipulation"
This function takes a comma separated string and parses the values into a variable-length array, which can then be assigned to a predefined number of variables, or iterated with a For-Next loop. This code is roughly based on Brant Gluth's submission entitled "Parse Delimited Text", with the addition of a demo form and improved string handling. Most noticeably, this code can handle strings enclosed in quotes and will not break on delimiter characters within the quotes.
This is just a trivial little app that creates actual rainbowed colored text (unlike that ubiquitous random colored letter code). See the README.txt for more info on the color conversion functions.
Have you ever had one of your Programs, VIOLATED? By little punk kids that HEXED it? Well this Tutorial Shows you how to Protect against this!
This code extracts undetermined-legth-strings (separated by delimiter) from a single string. NOTE** UPLOADED A NEW EXAMPLE, LAST EXAMPLE HAD A MISTAKE IN IT. SORRY ABOUT THAT.
this encrypts the text you enter in the text box. really cool and easy to understand code
This app works like DOS. However, it currently only supports variable modifying commands (such as 'set', 'reset'). It works in much the same way as id's engines manipulate and use their variables. I wrote it to include it in a game engine I'm fiddling with or more to the point, to a script parser I'm writing for the game engine. It's sort of a work in progress at the moment with lots of room for expansion (like maybe a binary search for the variable look-ups, or put some commands in it). If you like it vote for it! Enjoy. UPDATE 1: I added command and constant processing ability. I wrote the procedures for each as straight forward and as easily modifyable as I could. Enjoy.
example shows how to search particular string between twon defined strings
This class was created for the main purposes of having a controlled "stack" (like the stack, or memory heap in a computer). It will let you push items onto the stack, pop them off, and retrieve the number of items on the stack, and more. I'm pretty much a beginner here, so tell me what you think.
Easy trick to allow only text and converts it to upper-case. (Backspace is optional)
If you are using a text box to input a UK postcode, the text box can be attached to this class, which will then ensure the text entered is UCase & conforms to a valid UK Postal Code format. I have add a new function to the class which enables Multimap Lookup. (Thanks to Jon Webb for that code.) Cheers also to Simon Woollard for pointing out the changes that were needed.
Hi All .. That's A Very Cool Program .. It Explores VB Files ( VBP , BAS , CLS , CTL , FRM ) and Get All Functions , Variables , Constans .etc In The File And View It With The Same Colors and Font Of VB Editor .. You Will Read It Exactly as You Read It In VB Project .. ( See Screen Shot ) .. This Program Is Useful If You Want To Read Function , Subs .etc In a File To Find Something In Huge Files .. Please Comment and Vote ..
Compare using wildcards like * and ?, ranges like "at[0-99].gif", and a new wildcard %. Which is like *, but goes only at the end. "at%" would be like "at", and also "atquaz".
It's a common problem everyone has faced. You have a couple paragraphs of text that you want to store in a constant. But how do you manage quotation marks, line breaks, and backslashes in a quoted string? This solution will let you paste text into a textbox, and it will spit out the source code in order to store that text properly in a variable. Outputs to Javascript, VBScript, VB6, VB.Net, C#, and HTML. Very handy!
This program searches through a list of words and tries to find words that sound similar to the one you are looking for, such as Light and Bright. Quite simple. Keywords: Wordlist, list character rhyme common controls
With this you can Read Lines (from a textbox and a string), Set Line Number, Get Line Number, Columns, etc. from a TextBox. This is very usefull, seems n00b but it isn't. Please Vote!!
This code shows how to find a longest common substring in two strings. I had a hard time finding out how exactly to do this so now that I have done it I'm sharing it to help others that need it.
Word Processor, similar to Microsoft Word (not as many features though). Different fonts, colors, sizes, tabs, rulers, images, files, find, replace, goto, word count and more. Not finished yet, if people think I should bother finishing it off I'll add undo, redo, autosave, image options and possibly more... Please leave comments. Thanks, Neophyte.
Although the main purpous for this submission is to color VB code for viewing in a richtextbox. What you will learn can help with fast string manipulation. And you also get alot of information on the RichText standard. Read the cod comments for a full understanding. Just so you know! I'm sick of getting several hundred downloads and no comments I could give a s@@t about code of the month as i dont think im a good enough coder; however, I do want comments. Comments about how to code better or about the inventiveness of my submission or even how crappy it is. You can keep the spelling and grammer comments to yourself. This isn't PSC the online english school is it? So if your worried you may not get code of the month don't vote. But please comment! god or bad. This is by far the fastest way to color vb code without an outside dll or control Its done in pure vb and can color 300kb in less than a second. This time was attained on a 3 ghz processor with a gig of ram. It does key words, Quoated strings And comments. The user has the option to alse include web addresses, which would be underlined. The only problem I can find with the current code is it want color itself without error. I want go into an explination here; but, if you must color this programs code or just want more details on what is wrong jusy drop me a note. You can reach me through PSC. The code seems to handle all exceptions within the code. Odd quoats and if a comment char is inside a quoat it will be ignored, things such as these are handled. At present the compare method is binary and will only catch proper case words The same case structure used in vb, EndIf, ElseIf, exc... Changing to a text compare would allow you to ignore case but would also slow down the function a bit. If your source is derived from the VB IDE all should work well; however, if you are makeing your own editor you will want to use the text compare method at least during the editing process. NOTE: THIS CODE HAS ONLY BEEN TESTED ON WINDOWS XP WITH VISUAL BASIC 6 HAVEING THE LATEST UPDATE!
Sends your whisper messages to people on paltalk
Optimizing VB String Parsing – Using Byte Arrays and Binary Searches to parse and color code