Solved

Whats the difference?

Posted on 1998-08-05
5
151 Views
Last Modified: 2010-04-04
Why can I modify data in an Empress database table with data aware controls i.e. DBEdit, DBMemo, but I cannot do it with code i.e. Table1.FieldByName('description').AsString := Edit1.Text;
The table is open with ReadOnly set to false.
the same thing happens with queries even when RequestLive is set to true.
I do not have this problem with Access tables.
Is there anyone else out there using Delphi 3.0 and Empress ?
0
Comment
Question by:nhoj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 5

Expert Comment

by:inter
ID: 1359767
Hi, May be it is silly to ask but did you do
Table1.Edit;
..// Do your modifications
Table1.Post;

Igor
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1359768
Sorry, don't know anything of Empress... You do use Edit/post, don't you? But since you don't have problems with Access, I guess you do.
0
 
LVL 1

Author Comment

by:nhoj
ID: 1359769
From nohj
Thanks chaps that sorted the problem, but I still have never had to do this with Access. Empress is a Canadian RDBMS for UNIX, very powerful, checkout www.empress.com
0
 
LVL 1

Expert Comment

by:Greedy
ID: 1359770
The DataSet must be in edit or insert mode to change a value.  You can use this code to check the status
if MyDataSource.State in [dsEdit, dsInsert] then
  UpDateTheFieldValues;

0
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 100 total points
ID: 1359771
The table must be in edit mode (use Table1.Edit; ) and you need to post the changes (use Table1.Post).

You can check if the table is in edit mode by checking the options in the State property (eg: dsEdit and dsIsert).

There is no difference between (as far as BDE is concerned) having data aware controls modify the data and doing it directly through the code.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses
Course of the Month11 days, 6 hours left to enroll

628 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