Results for "Category: String Manipulation"
ASP EDGE is a great online solution to setup websites with highly configurable Administrative options. ASP EDGE is an integrated engine of user management, News Publishing,Content Management, Message Boards, Internal Messaging, user rankings, Link Manager (category configurable),poll, rotating ad manager, logged users, active users etc. Now you too can build an Online Community, Intranet or Extranet! See how it works an the latest update on it www10.brinkster.com/aspedge
Simple and fast Linewrap written with a bit of Vb standards. This one does same job as Sam Kopetzky one plus one feature: it can split lines in same length and if no space is found to split them, it will divide the word with a "-" char (lines will result 1 char longer than max you said!) The Sam Kopetzky code is compatible with all Vb versions, while this one is only for Vb6 - as it uses functions like Split and Join - but it may be easier to understand. If you want to take a look to Sam job, go here: [url]http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=35460&lngWId=1[/url]
Purpose: The purpose of this widget is: 1. provide a single function to handle creating tables 2. provide a table that can sort both ascending and descending on any column 3. provide a table that can then link to an edit view 4. provide a table with alternating row colors for easier readability 5. Allow each of the above to be accomplished in 2 lines or less
This is a recursive function to calculate a string formula. For example: You have a formula like "3*((2+6)*2-2)/(2+2)". You just call the function to get the answer. Hope this is useful to somebody:)
This code will connect to a MySQL database server and allow users to upload and download images stored in a table within that server. The code uses the MySQL.net connector, which is freely available for download from the MySQL website. For the purpose of testing this code, I have allocated a database for use on my server, for the details of the connection information please see the README file. I am quite new to C#, and this is my first attempt at writing a class, let alone a partially compleate class for uploading/downloading images to a database. So if you like this code, I would be thankful for any comments and votes you feel this code deserves. Upon initial running of the application you will be presented with a dialog, asking you to add galleries, please add at least one gallery to this list, otherwise you will be unable to upload images to the database. After this first step, you need to select a database and a table from the comboboxes. If you do not select a table with a compatable gallery layout (as shown in the README files) you will be presented with a error. If you are connecting to my MySQL server the database required is 'testuser' and the table is 'gallery'. I still need to add a function to translate MySQL error codes to their plain english meaning, hopefully this will follow shortly. I would like to thank you for taking the time to view my code, and if you like it, please dont hesitate to vote for it.
Very simple, almost useless code! Shows all "printable" ASCII characters. I needed this for something else, so I thought I'd post it here for beginners' benefit
Extracts the contents of a "child" substring from a "parent" string between 2 additional specified substrings. For example, if you called it like this: GetStringBetween("Fourscore and seven years ago, our fathers", " and ", " our ") It will return "seven years ago,"
Compares a string to a list of items in another string, and returns how many matches are found
This is just an update to the nice piece of code submitted by VF-fCRO on 1/12/2002. I simply added some small features (elapsed time, a different way to loop, minor text edits, etc). Doesn't really change the purpose of the original, just adds a few touches to it. the original is at http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=30734&lngWId=1 I wouldn't really entitle VF-fCRO's submission a "mistake"; he/she actually submitted a demonstration of a better way to handle concatenating strings with a far faster technique, and it doesn't use and API calls or weird, esoteric methods.
Did you know that the capital letters are different from the small letters only by one bit? A = 01000001 while a = 01100000 the 3rd bit is the capitalization
Formats SQL strings with quotes and line breaks for use in VB. This was a project that was submitted by another user that I have modified. I have added in the ability to update which SQL clauses will cause a line break, using a txt file. Also I have updated the SQLVarPos so that it uses an array for position location of key words. This also has better tab order and an auto-tab so you are ready to copy your formatted string as soon as you select "Format String".
This Code Takes a script file and interprets the strings, making it do stuff, like a real vb application
A very small example of how you can using Access databases within your applications. I made this little demo after searching for hours on the net for an example and failing. Firstly I created A simple database in Access using 1 table called "people" with 3 columns, id, fname and sname. The app allows you to add new records to the database, remove them or change them. Excellent for beginners.
This code teaches you how to connect and use a MySQL database thru PHP 3/4. Great for beginners! I update it, so the version on this page has no comments because the PSC butchers it alot, so if you would like an explanation of the code go here http://www.moddingcentral.com/~oblivion/ I dont think this is allowed but its for the better. If you want to copy and paste the code then do it thru this the PSC page.
splits a path up a path and shortens parts to make it shorter. e.g. c:\program files\blingblongblu\bah\bleh.exe c:\program...\blingbl...\bah\bleh.exe
a basic banner rotator. please vote for me! www.vbcouk.co.uk
This code serves as a starting point for database connections in C#. Adding greater functionality should not be too difficult. This example contains functionality for data navigation, database connection, recordset connection, Bookmarking, AbsolutePosition and RecordCount counters, and of course: Returning data from the table.
This article shows how to use Javascript to populate a combo box with data from a XLM data island in IE5. The XLM data island is dynamil changed by a ASP Page , without the need of redrawing the screen. This code is very flexible and powerful and could be adapted to show datas in tables.
This is a page I wrote that works like a recordset. Yet I know this is not the most effiecient way to do it but it works. If you have a better way of doing this I would be interested in seeing it. You will have to change the database, Tables, and Fields to suit your needs. Requirements: PHP and mySQL
*UPDATED* This example shows you how to Save, Add, Edit, Delete, and Search for records in a SQL Server Database from a user form. It also shows some basic stuff with the new DataGridView. Allows you to click a cell retrieve cell location, header text and row content. You will need VS2008 and SQL Server 2000.