Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Delphi Misc > Re: Modifiyng a...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 6024 of 6138
Post > Topic >>

Re: Modifiyng a Paradox Database

by "nntp.aioe.org" <EG_nomails@[EMAIL PROTECTED] > Mar 27, 2008 at 12:55 PM

"clinisbut" <clinisbut@[EMAIL PROTECTED]
> wrote in message
news:22c103a7-e049-46c3-a692-43c912c35b0b@[EMAIL PROTECTED]
> Is there a way to modify a paradox database structure? Concretly
> fields names.
> I don't mean inside my own app, but with any existing applicaction.

The original Borland tool Database Desktop (DBD32.EXE) was newer a freely
distributable utility. There are some commercial/shareware "Database
Desktop
replacemens" but I myself never had any need for those replacement tools.

> Or to create a new one database. I'm stuck with this, all I found is
> commercial applications

So, you do not want to use any money here? Then payment can always be
compensated with developer's own sweat:)

For instance one demoversion application dbu13.zip for instance from
Delphi
Suer Page http://delphi.icm.edu.pl/
might help you to get started. This
utility shows the current Table Structure but does not itself write any
modifications to the table. Yet it gives ready made Delphi source how to
programmatically create equal Table:

Delphi Source For CONTACTS.DB:
=========================================================

with TTable.Create(Self) do
  begin
     Active := False;
     DatabaseName := 'C:\TEMP';          { * Change the DatabaseName * }
     TableName := 'CONTACTS.DB';
     TableType := ttDefault;
     with FieldDefs do
       begin
          Add('CustNo', ftFloat, 0, False);
          Add('Name', ftString, 30, False);
          Add('Phone', ftString, 15, False);
          Add('Email', ftString, 40, False);
       end;
     CreateTable;
     with IndexDefs do
       begin
          AddIndex('PrimaryIndex', 'CustNo;Name', [ixPrimary, ixUnique]);
       end;
     Free;
  end;

By making your changes for instance to Field Lengths, you can easily get a
new Table created with the new structure you want.
Of course this same type of code can alter also the existing table's
structures. Yet it is a bit more complicated, and you have to go and dig
the
exact examples from Google.   Good luck.
EG
 




 2 Posts in Topic:
Modifiyng a Paradox Database
clinisbut <clinisbut@[  2008-03-26 05:05:38 
Re: Modifiyng a Paradox Database
"nntp.aioe.org"  2008-03-27 12:55:51 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 6:46:30 CDT 2008.