Results for "Category: String Manipulation"
Demonstration project of standard Visual Basic string functions with some custom string functions also included.
To open MS Access or Ms SQL server database using C/C++ or VC++
Simple address book Class in C++, has methods for adding new record, sorting, deleting and storing data in a file. Has it own menu aswell.
Explores and teaches parsing algorithm techniques (PART 1)
*Now about 50% faster compress performance, fixed some glitches and improved compression ratio. *UPDATED: Now supports both upper and lower case words (any sentence should come out fine regardless of case, etc.) + Some performance and compression optimizations. SEE COMMENTS AT TOP OF COMPRESSION MODULE FOR FULL DETAILS. This code basically takes a string composed of everyday conversational english, and compresses it to a much smaller string using a set of dictionaries (included), and can also decompress any previously compressed strings.. This code was designed to be applied in a chat environment to save server bandwidth as the server has to echo many messages to hundreds of users many times per minute, this can make a big difference in bandwidth usage and in the case of a mmo game server, can help to ensure smoother gameplay as the game grows. Compared to zlib this is much more efficient at english-language compression, but entirely not suitable for other types of strings that do not contain english words. This code is intended to be used on the client side, and only includes the procedures necessary to compress and decompress a string, specifically everyday English conversational sentences.
A quick and dirty search script for pulling catalog items from a MySQL database. Supports the use of 'And' or 'Or' or 'Not' between keywords. by Kevin Clevenger.
Web based database(MySQL) management tool http://brutus.snu.ac.kr/~smkim/mysql by SooMin Kim
This program takes customers orders by code then creates a bill for the purchases. Also can print the bill. All totals are calculated automatically.
Judge not lest ye be... Anyway, no how could I have written this. It's the complete code for an earlier submission from MUKUNTHAN (REally, Dino Espositio at ASPtoday I am told) that allows for display of images from an access database. Feel free to email me for more if it doesn't come through. Thanks to Fabrizio Ricciarelli, Eric Gionet, Jos Hardy, Tim Krause and special thanks to my Moms...
This code shows the use of a dynamic array for the storage of data. Recordsets are memory hogs, and shouldn't be passed across the server, so why even use one? What I was doing with this code was displaying a list of users on my website. After getting the data, I would have it build a table for the information and create hyperlinks for the appropriate fields. I've seen others do this, but they use recordsets to build them, which defeats its purpose. All the code is done with one trip to the server, so you won't see all those carrot tags being opened and closed throughout my work : )
Allows midi songs to be played on your web-site. Songs are stored in an Access 2k database. Code will play a random song or allows user to choose a midi song from a drop-down list. Code calls same page to play midi with ms media player. Could use mp3's but mp3's drag down server. I use this as a sidebar on my default web page. Let me know if you find any issues.
I really miss DAO/ADO. I like ADO.NET's disconnected DataSet but not it's syntax. So I wrote this class to let me use DAO/ADO-like commands with ADO.NET operating in the background. It is really great for Looping thru in code. This is Version 3, with some bug fixes.
This program was devised to help novices and learners encompass a better understanding of basic string manipulation. It uses such functions as Left, Mid, Right, Replace, etc. Also allows you to save and open text files with API.
Ported to VB from a Java port of the GNU Diff implementation. The basic algorithm is described in "An O(ND) Difference Algorithm and its Variations", Eugene Myers, Algorithmica Vol. 1 No. 2, 1986, p 251. It's released under the GPLv2
"PARSE" function converts search string (like in altavista/with pluses, minuses and quotations) into SQL query string for database search. To make this work in your database, you need to replace "table" and "field" words with appropriate values for your database. It's done in VB6 but will work in other versions as well.
Here is an example of how one can count the number of appearances of a specified character in a given textstring. Included is a little project file with a form. The code is quite understandable. Actually it is beginners code. I just submitted this as a sequel to another submission here on PSC. Not that I find the other submission bad, but to show another way of doing things.
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)
A password cracker simulator using a permutation of a byte array algorithm. Hold on to your hat this class is fast!
Comparing connection string: Aceess Vs. SQL server --------------Access ---------------- OleDbConnection mycnn = new OleDbConnection("Provider = Microsoft.Jet.OleDb.4.0;Data Source = C:\\ManasEcomm\\Wine1\\pro2.mdb"); --------------SQL SERVER----------- SqlConnection mycnn = new SqlConnection("server=manas4;Integrated Security =SSPI; Initial Catalog=pubs"); SqlDataAdapter mycmd = new SqlDataAdapter("SELECT * FROM employee", mycnn);
Shows the database's schema and the table's data