Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Know if a Ttable is in edit mode

Status
Not open for further replies.

jbpelletier

Programmer
Sep 8, 2001
232
CA
How can i know if a Ttable is in edit mode(delphi5)...

i need something like:

if MyTable.isedit then
begin
..........
end;


jb
 
hi,

if Table1.state = dsedit then
begin
...
end;

Steph [Bigglasses]
 
jb,

Actually, Steph's answer needs a slight expansion to cover Insert mode as well:

Code:
   with Table1 do
      if ( State in [ dsEdit, dsInsert ] ) then
         // ...

Hope this helps...

-- Lance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top