Re: TDBmemo fields and Memory Tables



Bill, many thanks for your reply. Yes, the 'save' button does indeed call
the Post method - but perhaps I wasn't clear enough or just thinking
straight. The problem specifically occurs when entering what in effect would
be a line within the DBmemo string list; but when the user doesn't press
carriage return to say end the line. How do I detect whether they have in
effect added a whole line of text of just part of it?
If the user types

This is some text (carriage return here)
and this is some more (and at this point presses carriage return)

the whole of the above two lines get saved.

However if they don't press the 2nd carriage return, the record in the db
only gets the first line added.
I'd be really grateful if you have any thoughts.

Many thanks again

David

"Bill Todd" <no@xxxxxx> wrote in message
news:44f33595$1@xxxxxxxxxxxxxxxxxxxxxxxxx
David Smith wrote:

Hi, I recently noticed that a TDBmemo field attached to a
TkbmMemTable was not being updated properly when the users selected
the Save icon. It would appear that unless the user tabs out of the
field, then the 'on-screen' contents of the field are not copied to
the memory table field - is this right? My understanding of what
happens under the skin (of the components) is not great, but does
anyone please know how to solve this. In other words, the user wants
to be able to type into the TDBMemo field and press the Save button.

What does the Save button do? Assuming the Save button calls the
dataset component's Post method then the answer is that it should work
and it does work with every database I have used a TDBMemo with. Note
that I do not use kbmMemTable so I do not know if it works with
kbmMemTable.

--
Bill Todd (TeamB)


.


Quantcast