Results for "Category: String Manipulation"
This program lets you input text or copy paste from another program. as you type or the text is pasted in, it counts the amount of words, spaces, vowels, consanents, etc. It can be used for programs like icq, text editors, and much more! Please give me feedback and vote!
Library of routines for typical string processing, including parsing, translation, and validation. Routines include: - StrReplace(Text, SearchFor, ReplaceWith, [Compare]) As String - StrSplit(Text, SplitOn, [Compare]) As Variant - FromHex(HexNumber) As Long - LeftPad(Value, Size, [PadCharacter]) As String - RightPad(Value, Size, [PadCharacter]) As String - AreLetters(Text) As Boolean - AreDigits(Text) As Boolean - AreLettersOrDigits(Text) As Boolean - AreInSet(Text, CharacterSet, [CaseSensitive]) As Boolean - ParseN(Text, StartAt, PatternArray, ValueArray, [PosPastEnd], [StopAt], [Compare]) As Boolean Clean code with lots of comments in reusable module. Also includes an extensive reference in HTML. Tested with VB6, but should be compatible with all modern versions and VBScript (with minor modifications). Please vote for this code if you like it.
Read an entire text file into a string in one call.
DLL that allows you to write RTF code that is compatable with Windows WordPad. Use this object to convert HTML to RTF, or to generate RTF file on the fly!!!! Don't bother looking anywhere else for this hot little piece of code ( I spent hours on the net looking, finally I gave up and wrote it myself!) Look here for future updates, up next... picture, and table support! Added Bonus: Object that enumerates through the fonts on your system and gets the Picth, and Font Family for each one!!!!!!!!
This code demonstrates how to search a string using a web search engine style query. With this code you can analyze text files looking for specific patterns. For example: (Microsoft and AOL) or "instant messenger" This query will analyze any string for the occurrence of the words Microsoft and AOL or "instant messenger". I use this code (in conjunction with other code) to scan the users hard drive for occurrences of text files that meet the user defined search parameters. This is an enhanced version of the search for files containing text feature in windows.
Absolute Easiest Way To Find And Replace Text in Any Control - ie: labels, textboxes, basically ANY control that supports text editing!!
To return a group of Random Records from a database. For example, a group of random questions for a quiz/test.
If you are looking for a simple solution to display data and be able to sort and query it, you are on the correct page. Complex relationships between recordsets can be viewed using this technique. It is easier to use compared to ASPDB solution. Download Complete source code and explanation.
This article not only includes the complete source code for a database driven web site that the author created, but includes a detailed description on how it works!
The zip includes an Expression Parser Class that parses and computes mathematical expressions (such as "-pi * sin(50 + 3 * 4) / -3"), and a demo client application. The parser supports built-in and user defined constants and built-in functions. Also, it demonstrates a variety of error-handling and VB tricks.
Increments text string with alpha and numeric characters.
View any font with custom height, width, slant, boldness, and color. This uses some API, and is very well commented. Check it out.
Here is are two nice functions that will convert Decimal values to binary and binary to decimal in a surprisingly short amount of code. Comments welcome. Please
Takes a string and evaluates it, thus giving the user an answer to a string such as "hsin(1)+hcos(1)", which will be e. The evaluator incorporates an error handler, as well as user entered constants. The function is in the module, easily made to be imported to other programs. A demonstration program is included an shows some possiblities. A help file is not included, but will be available by e-mail. An important point, to keep in mind, that almost all functions must be entered in form of sin(45). If a function has one argument, enter it like sin(45), otherwise, put first argument, function, second argument, as in 2+1.
Hi folks I have searched many sites for storing a picture into a database and retrieve the same. But I got some tutorials when I searched the web. Using the tutorials I have a made one for me. It was implemented using Php and Mysql. I will tell you want is the job of each files. 1). index.php This files links all the files in the project. 2). store.php This does the job of storing the picture into the database. 3). viewadd.php This file shows the entire picture stored in the database. 4). getpicture.php This file actually gets the file from file in the form of picture 5). mdbc.inc.php This is a class file for Mysql feel free to use. I got this over net. Here is the table description Id - > has the picture id Description -> has the picture description bin_data -> picture data filename -> picture file name filetype -> picture file type. Like gif or jpeg etc link -> you can store the link incase if you want to use this for ad exchange showno - > no of time ad show etc clickcount -> no of time the ad being clicked etc Query for the table. CREATE TABLE ads ( id varchar(15), description varchar(255), bin_data LONGBLOB, filename varchar(50), filesize varchar(50), filetype varchar(50), link varchar(255), shownno integer(5), clickcount integer(5), unique(id) ); If you want to see a site where I have implemented please have a look at the site http://www.asksathia.com/ Feel free to change anything in the code. If you developed a better version than this please send me the source code so that I may update myself. It took me much time when commenting the code of ease of understanding. Please vote for me. Regards Imthiaz Rafiq imthiazrafiq@gmx.net Msn id: imthiazrafiq@gmx.net Yahoo id: imthiazrafiq ICQ: 24294947 URL: http://high-flyer.da.ru/
This Example will Demonstrate how to use the OLEDBConnection, OLEDBDataAdapter, OLEDBCommand and DataSet Objects -Querying/Adding/Updating a Access 2000 Database. Uses System.Data.OLEDB Namespace and the Listview Control. Any Suggestions drop me a Line
This Project is an example of a Simple Multitier Application using a Business Rules Layer and Data Access Layer, to provide scalability to your applications. It uses SQLDataAdapters, DataSets and SQLCommands to Achieve the DataTransfer. The GUI Uses a Listview to Display the Dataset.
This small function will strip out the unreadable characters and return readable characters in a string. This works great for stripping thoes little boxes out of the text that you just snagged from a web page. I know that a lot of you have used my code, but have not voted. It would be nice to see some feedback in the form of a vote. Thanks.
This little App will breakup a long string of text into lines of text. The length of line is set on the form. The output is sent to the clipboard. Copy a string of text and paste it into the text box on the form. Click on RUN. The application will count the number characters in your text and tell you how many lines of text were generated from that text. The line never breaks on a word.
Demonstrates how to add an item to a listbox in any desired index. (i.e. Add an item between the 2nd and 3rd item in a listbox.) Demonstrates how to shuffle/rearrange items in a listobx (i.e. Moving an item "up" or "down" the list at runtime).