Solved

Insert a new field in a paradox table during runtime.

Posted on 2003-11-10
6
432 Views
Last Modified: 2010-04-05
Hi all,

I want to insert a new field in a paradox table during runtime, without loosing any data in the table.
Can anyone help me?
0
Comment
Question by:svenj
  • 3
  • 3
6 Comments
 
LVL 7

Expert Comment

by:jconde
Comment Utility
What about using a query to do so ?

ALTER TABLE "paradox_table.db" ADD [column_name] data_type

where data_type is one of the following:

alpha, number, money, short, long integer, BCD, date, time, timestamp, memo, formatted memo, graphic, OLE, logical, autoincrement, binary, and bytes
0
 
LVL 7

Expert Comment

by:jconde
Comment Utility
procedure TForm1.Button1Click(Sender: TObject);
begin
  Query1.SQL.Text := 'ALTER TABLE customer ADD myfield char(40)';
  Query1.ExecSQL;
end;
0
 
LVL 27

Accepted Solution

by:
kretzschmar earned 500 total points
Comment Utility
yep,
this would be the easiest, what jconde provides

you can also use the bde-api
see
http://info.borland.com/devsupport/bde/bdeapiex/dbidorestructure.html

example 10

meikl ;-)
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 27

Expert Comment

by:kretzschmar
Comment Utility
jconde, i post a q for you, watch out
0
 
LVL 7

Expert Comment

by:jconde
Comment Utility
Meikl,

Thanks, but why did you do that ?
0
 
LVL 27

Expert Comment

by:kretzschmar
Comment Utility
>Thanks, but why did you do that ?

because your suggestion is correct and was first,
so i think, its fair that you get also some points

go
http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_20794091.html

and post a comment there

meikl ;-)
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This video discusses moving either the default database or any database to a new volume.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now