Solved

Problems with Emptytable.....

Posted on 1998-01-06
15
155 Views
Last Modified: 2010-04-04
I use Emptytable to delete all records in my table. The problem is that I get "Access violation" on some computers, and I don't have a clue why! Is it possible that it has something to do with networks. It works just fine on computers that are "Single", without internet connection or any other network connections.
(The table property "Exclusive" is set to true for the table..)
I use Delphi Developer 2.0

Thanx!
Erik N
 
0
Comment
Question by:Erik N
  • 7
  • 5
  • 2
  • +1
15 Comments
 
LVL 2

Expert Comment

by:Waldek
Comment Utility
Have you Exclusive=true
0
 

Author Comment

by:Erik N
Comment Utility
Edited text of question
0
 

Author Comment

by:Erik N
Comment Utility
Edited text of question
0
 
LVL 3

Expert Comment

by:Matvey
Comment Utility
Have you tried running it from Delphi or the EXE alone?
I don't remember which version of Delphi did it but it opened the table also and then you can't set the table to be exclusive...

Matvey
0
 

Author Comment

by:Erik N
Comment Utility
I run the application alone (.EXE) on the computers that i failed on.

Erik N
0
 
LVL 5

Expert Comment

by:ronit051397
Comment Utility
I use Emptytable on WinNT. I am connected to the Internet and the network and it's working fine.
0
 
LVL 5

Expert Comment

by:ronit051397
Comment Utility
You need to close the table before doing Emptytable.
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:Erik N
Comment Utility
Before I use EmptyTable I use the following line:
Dm6.Table1.Active:=False;
This should be the same as closing the table.
I must have done some stupid, because I cannot find anything that seems to be theproblemsource...
It looks like this:
Dm6.Table1.Active:=False;
Dm6.Table1.EmptyTable;
Dm6.Table1.Active:=True;

Erik N.

0
 
LVL 3

Expert Comment

by:Matvey
Comment Utility
Does the error occures on the seccond line?
0
 
LVL 5

Expert Comment

by:ronit051397
Comment Utility
Do you write something like this:

Table1.Close;
Table1.Exclusive:=True;
Table1.EmptyTable;
Table1.Exclusive:=False;
Table1.Open;

0
 

Author Comment

by:Erik N
Comment Utility
I tried this too, and it didn't work...
I use the installationdisks I've made, and the function Emptytable only works on a computer that has Delphi installed, not on any other....

Erik N.
0
 
LVL 5

Expert Comment

by:ronit051397
Comment Utility
Asuming, you are working with paradox, In the InstallShield, Did you entered the General options and marked the option BDE(Borland Database Engine)?
0
 

Author Comment

by:Erik N
Comment Utility
Thank you ronit, for your suggestion. It turned out, I had only selected partial BDE installation, and probably there is necessary to select a "Query driver" aswell( wich I hadn't). However, I tried to select "Full BDE installation", and the problem was solved, just like that!

Thank you all!
To ronit: If you want the points for this, please propose an "Answer".

Erik N.
0
 
LVL 5

Accepted Solution

by:
ronit051397 earned 100 total points
Comment Utility
OK.
0
 

Author Comment

by:Erik N
Comment Utility
Thank you for your help, ronit. I guess I'd better R.T.F.M. (Read The Fuckin' Manual)

Erik N
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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

762 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

11 Experts available now in Live!

Get 1:1 Help Now