Can't assign values programmatically to a TDBEdit control
From: Jim Brooks (jabrooks_at__BAIT_mindspring.com)
Date: 01/20/05
- Next message: J West: "Re: Can't assign values programmatically to a TDBEdit control"
- Previous message: Brian Bushay TeamB: "Re: Getting UnderlyingValue and OriginalValue for fields from recordset"
- Next in thread: J West: "Re: Can't assign values programmatically to a TDBEdit control"
- Reply: J West: "Re: Can't assign values programmatically to a TDBEdit control"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 20 Jan 2005 20:16:09 GMT
Hi all - a simple problem that's driving me up the wall. I have a
fairly simple database with a typical construction:
TADOConnection -> TADOTable ->TDataSource->TDBEdit. Hooked up to an
Access database, I can read and write data correctly, so the
connection is good.
Problem: when I programmatically assign a value to TDBEdit.Text
(DBEdit1.text := 'Test';) the new value is displayed on the screen,
but apparently not stored to the datafield. As soon as I click on the
DBEdit field again, the displayed string reverts back to the original
value.
In addition, the "Post" and "Revert" buttons on the atached
TDBNavigator don't become enabled after I assign the new value, which
indicates to me the datasource doesn't think the data has changed.
I can edit the values manually at runtime by clicking in the field and
typing, just not programmatically.
I've tried changing cursortypes and locations, no difference.
Any help appreciated, thanks!
Jim
- Next message: J West: "Re: Can't assign values programmatically to a TDBEdit control"
- Previous message: Brian Bushay TeamB: "Re: Getting UnderlyingValue and OriginalValue for fields from recordset"
- Next in thread: J West: "Re: Can't assign values programmatically to a TDBEdit control"
- Reply: J West: "Re: Can't assign values programmatically to a TDBEdit control"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]