Advertisement

Results for "Category: String Manipulation"

7_2009-2012 #222544
Line by Line Text Cycle

This code will cycle through a text box or rich text box line by line, select the line and place it into a string array. The array will then be passed to another method where it will be placed into a list box excluding the blank lines. I've seen other code like this but if there is no ending vbCrLf then the last line of the box is not read, I've fixed this and showed how to extract the line information and how to use it. The code is slowed down using a pause routine that I made about a year ago.

7_2009-2012 #222559
MySQLdotNet

MySQL-API for dotNET. I needed a fast connection to mysql for c#, thus I wrote this class(MySQLdotNet). You can get DataSets from Querys and Update them. Also you can send Querys(SQLNonQuery), which do not send data back. SQLScalar returns only one value. 'TestDataAccess' is a little test-client for the API. The source is written in c#, but you can use it with every dotNet-language. To open the project, doubleclick on "\TestDataAccess\TestDataAccess.sln" This Source-code is Freeware. If you modify or update something, that make the program better, please let me know, or send me the sourcecode. Requirement libmysql.dll Today(12-07-2002) I fixed a bug to delete rows from a DataTable (13-07-2002) added flags to DataColumns & primary-keys to the DataTable Enjoy...

7_2009-2012 #222610
Base64 Codec

The original source code was from someone (AndrComm or Sebastien?) else. I recode the whole thing, but having reference to the original. Anyway thanks, whoever who are who wrote the original code (yeahh.. all creadits to him) since i learnt some performance optimization (my original codes are tremendously slow).I did some code clean up and comments. The encode speed increased by 20%, decoded speed increased by 30%. Here's the best results that i come out with: file : command.com (93,040 bytes) load : 2.56 mb/sec (n/a in original code) save : 3.39 mb/sec (n/a in original code) encode : 7.17 mb/sec (20% faster, original code runs at 6.05 mb/sec) decode : 7.31 mb/sec (30% faster, original code runs at 5.61 mb/sec) Here's the changes I've made : 1. *REWROTE* code clean up (i think it should be more readable) 2. *REWROTE* encode and decode table is created together. 3. *REWROTE* sub DECODE rewrote (should be faster). 4. *REWROTE* sub SPAN and UNSPAN now supports SpanSeparator. 5. *ADDED* More detailed co1mments for novice, not experts 6. *ADDED* some form controls, for input and output. 7. *ADDED* file loading and saving feature 8. *FIXED* encode / decode rate calculation fixed... more accurate should be 1 sec = 1024 ticks (kernel 1044 ticks?) and 1 mb = 1048576 bytes. (1024b x 1024b) and some other minor corrections as well...

7_2009-2012 #222632
ASP Data Driven Web Report

reads SQL Stored procedure meta data to provide a complete reporting solution including user input forms for criteria and sortable, pageable html reports.

7_2009-2012 #222642
Using Regular Expressions

Regular Expressions is a very powerful tool for string manipulations. I have developed an inhouse tool to to test and optimize pattern code. A tutorial is included that will get the new user "up to speed" in seconds!

7_2009-2012 #222687
Track Running SQL Server Jobs

***UPDATED 01/22/2003*** This is the same as my VB6 program only it's been adjusted to compile in the .NET environment. It does as stated below. To retrieve a list of jobs on a given SQL Server (7.0 or 2000) and track it's progress through it's numerous jobsteps. This is typically a nice little app to have if you have many jobs that run throughout the day and you want to see if one of those steps has hung up. To make this app truly useful I added a monitoring timer that refreshes every ten seconds or so. The Restart Jobs button is not activated at this time, but the coding should be a snap someone wanting the ability to stop and start jobs from this application. This application is in it's infancy at this moment since I've been working on it for only a couple of days, but is useful even now as far as I'm concerned. Please vote if you like it...

7_2009-2012 #222740
Random name creator (For creating nicknames and RPGs names)

The code generates a random name. I am giving basically two simple functions with which you can create a loop that will make many thousands of nicknames or names for roleplay games. Check it out.

7_2009-2012 #222784
Basic of Database with ASP

This piece of code demonstrate the way of accessing database (basic reading and writing). Good for beginners who wish to learn ASP. Nearly every line is documented.

7_2009-2012 #222833
IRC TO RTF (Rich Text Format)

Converts IRC text to RTF and displays it in a RichText Box. Supports everything.

7_2009-2012 #222834
Scripting Engine X

It's a scripting engine made in visual basic. It's only in Alpha Stages right now, but is still pretty cool for only being about half done after a week of working on in. There is an example script right when you load it up which you can try and study the code, and try to write your own. Only a few built in functions right now, and minimal support for loops/if statements. There is a loop, and if/elseif/else statement, but they are very cheap right now...although they CAN be nested. Also you can write your own aliases, and call them, as seen in the example.

7_2009-2012 #222835
Scripting Engine X (SEX)

Update of my scripting engine Now supports if/elseif/else, while loops, loop loops, arrays of variables, formula evaluation (i got the code from here, but cant remember from who, but ill find and give them credit, i promise, sorry to that person). All of the above can be nested, along with the functions. You can EASILY add very little code to make it open a console window and do input and output. I didn't add that because it's purely an engine so far.

7_2009-2012 #222842
Doing Strings in VB Part 1

Strings play an important role in every software. This tutorial is big, it has everything that a beginner wants. This version is modified to remove some mistakes in the previous one, and adds some information about instr. I'd be glad to see your feedback. Thanks! Note: Since I am no guru, this could be all wrong, use it at your own risk.

7_2009-2012 #222846
Repost: ADO.Net Primer + Programming databases using OLE DB with ADO.Net

Moving from ADO to ADO.Net? Planning to access a Non SQL Server database? This article talks about databases on your hard disk, and discusses almost all of the important ADO.Net classes.

7_2009-2012 #222867
Fun_Font v0.1

Nothing so advance. What it does is change the font color everytime the user type a word.Don't know what to do with it, maybe good fo IM, chat app. .....feedback please.....

7_2009-2012 #222899
Reg Key Demo

Generates and Validates a 25Character Registration code. Extensive integrity checking on the validation process to ensure only the original key values can be validated. Well commented and easy to follow.

7_2009-2012 #223022
InStrRev for VB5

This is a InStrRev function for VB5. I took a look at the one microsoft recomend, and almost died of laughter.

7_2009-2012 #223072
Character counter

A FAST and EASY way to count the number of occurrences of one string within another! Please vote for this tip if you find it useful.

7_2009-2012 #223110
Convert RichText to Encrypted HTML!

This is an incredible program that lets you generate encrypted self-decrypting HTML files! It converts RichText to encrypted self-decrypting HTML files! Just type in your message in RichText format, choose a Password, and it automatically encrypts your message and generate that self-decrypting HTML file. Cool! How do you get the files decrypted? Simply with any IE browser, open it, type your Password, and you'll have the message automatically decrypted!

7_2009-2012 #223191
RichText No API GoTo Line

This bas contains a function that sets the cursor position in a Rich Text box to a given line without using API. This is a very fast method - no, it doesn't just scan through and check every line - and works fine even with long RichTextBox texts!

7_2009-2012 #223222
Effective Encryption Algorithm

Encrypts and decrypts strings

Languages
Top Categories
Global Discovery