![]() |
![]() |
| CodeBase | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CodeBase for Visual Basic ProgrammersPerformanceVisual Basic developers who use the Jet database engine for serious applications soon realize that Jet is just too big and slow to deliver the kind of performance they need. Developers often tell us that the Jet engine is fine when writing small applications that use small data files. But as soon as they try to write a serious application that deals with many large tables, the Jet engine crashes and burns! You'll never have that problem with the stable, high-performance CodeBase engine! CodeBase gives you that extra performance by providing a highly optimized set of routines that provide only the core functionality necessary to manipulate data files--there's no 'fat' in the engine to slow down critical database operations. One developer described using CodeBase as "programming to the bare metal". Try it for yourself and you’ll learn why serious database application developers turn to CodeBase to deliver the stability and performance they need in their applications. Size & CompatibilityNot only is CodeBase faster than Jet, it also has a much smaller footprint as well--the CodeBase engine is only one-fifth the size of the resources needed to run Jet! This translates into programs that load faster and reduce the strain on system resources. Your end users will notice the difference when programs load quickly and respond instantly to database operations. Plus, if you need xBase support, the Jet engine isn't 100% xBase compatible. Unlike CodeBase, Jet's locking scheme isn't multi-user compatible with other xBase programs like FoxPro, dBASE and Clipper. And with Jet, you can't even perform a full range of xBase tasks, such as building an index that includes a filter--a standard database feature when you need fast performance on skips and lookups. These are just some of the reasons why Jet users switch to the CodeBase engine, which provides an easy-to-use API, great performance, compact size, lots of flexibility, and 100% xBase compatibility. Try it and find out for yourself why professional programmers consistently choose CodeBase for their database applications. Client/ServerClient/Server database development is quickly becoming the preferred method of sharing data between multiple users. It provides better security and more robustness than traditional multi-user applications. It can also improve network performance by reducing network traffic. Plus, it’s the only feasible model for developing distributed database applications on intranets or over the Internet. Unfortunately, the Jet engine doesn't include a client/server configuration to meet this ever-growing need. Of course, you can still get client/server database capabilities if you want to spend thousands of dollars for an additional back-end database like Oracle or SQL Server. Or, you could use CodeBase, which includes a client/server configuration absolutely free! Not only can you distribute unlimited client applications and the server itself, but the server has no built-in limit on the number of clients that can connect! There is NO other client/server solution anywhere that matches CodeBase’s ability to give you true royalty-free distribution in every sense of the word. CodeControls & CodeReporterIn addition to the database engine, CodeBase also includes CodeControls, a set of data-aware controls that offer you some outstanding features. Take the master control, like the VB data control you get full browsing capabilities, but other functionality has been that allows you to perform seeks, appends and deletes automatically, all without writing any code! Plus you also get CodeReporter, the visual report designer that lets you design reports in minutes. Unlike the Visual Basic report designer, which requires you to ship an extra megabyte plus of support files, the CodeReporter run-time is already included in the tiny CodeBase DLLs so there's no extra files to include. And remember that you can also distribute the CodeReporter designer absolutely free to your end-users so that they can design their own reports as well! CodeBase APIThe CodeBase API is simple and easy to use. No super-long functions names, or hard to remember 'object.this.that().thing' syntax--just a straight-forward interface that makes getting started as easy as possible. And remember, if you ever need to use a different programming language such as C or Delphi, you'll already be 100% familiar with the CodeBase API for those languages, because they are virtually the same! Here's a simple example that show's you how easy it is to use CodeBase API from Visual Basic. CodeBase 6: Visual Basic Example
' List the MAILING.DBF data file ordered alphabetically by last name.
Sub PrintMail()
Dim cb&, db&, fld&, tag&
Dim rc%, j%
cb = code4init() ' Initialize CodeBase
db = d4open(cb, "MAILING") ' Open MAILING.DBF
tag = d4tag(db, "LASTNAME")
Call d4tagSelect(db, tag) ' Select 'last name' index tag
rc = d4top(db) ' Go to top of data file
Do While rc = r4success ' While not at end of data file
Print d4recno(db) ' Display record numbers
For j = 1 To d4numFields(db) ' For each field in data file
fld = d4fieldJ(db, j)
Print f4str(fld) ' Display contents of field
Next j
rc = d4skip(db, 1) ' Skip to next logical record
Loop
rc = d4close(db) ' Close data file
End Sub
CodeBase 6 Function ListHere are just a few of the fully documented CodeBase functions: Data File Functions |
| d4append | d4eof | d4lockFile | d4reccount | d4top | d4blank | d4field | d4lockGroup | d4recno | d4unlockAll |
| d4bottom | d4flush | d4numFields | d4record | d4unlockFile |
| d4close | d4go | d4open | d4reindex | d4unlockIndex |
| d4create | d4index | d4pack | d4seek | d4unlockRecords |
| d4data | d4lock | d4position | d4skip | d4write |
| d4delete | d4lockAppend | d4recall | d4tagSelect | d4zap |
| f4assign | f4assignLong | f4char | f4len | f4ptr |
| f4assignChar | f4assignN | f4decimals | f4long | f4str |
| f4assignDouble | f4assignPtr | f4double | f4name | f4true |
| f4assignInt | f4blank | f4int | f4ncpy | f4type |
| i4close | i4create | i4open | i4reindex | i4tagAdd |
| relate4bottom | relate4master | relate4querySet | relate4skip | relate4top |
| Code4connect | Code4logFileName | Code4logOpenOff | Code4tranRollback |
| Code4logCreate | Code4logOpen | Code4tranCommit | Code4tranStart |
If you’re developing database applications in Visual Basic that require high-performance, xBase compatibility, portability or royalty-free distribution, then CodeBase is the choice for you.
Return to the CodeBase Main Page
CodeBase Features
CodeBase & C
CodeBase & Visual Basic
CodeBase & Delphi
CodeBase & Java
Visual Report Designer
Data-aware Controls
CodeBase User List
Royalty-Free source code is included. Does
not work with Visual FoxPro Databases. All CodeBase versions
include the Windows/DOS version.
Upgrades for previous versions are available.
| ©Copyright 1999
HALLoGRAM Publishing, Aurora CO. All Rights Reserved. All products mentioned in this site are trademarks of their respective owners. dmcakegrim |