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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using DBaware control without a dataset?

Status
Not open for further replies.

bascy

Programmer
Mar 6, 2001
53
NL
I'm using the Synedit controls in a frame to edit a memo-field in several situatons. Some of those situations the memofield is part of a dataset, and in some situations it is not part of a memofield.

If i try to use the DB-aware Synedit control on a non-dataset value, it doesnt work (as i was afraid of)..

is there an easy way to fool the dbaware control, letting it think it is talking to a dataset, but in stead it is just a var or object?

Bascy
Network manager at
 
Your best bet is probably going to be to use a non-DB aware component and then write the code to save its contents to the db record prior to saving the record.

-Dell

A computer only does what you actually told it to do - not what you thought you told it to do.
 
Thanks for the suggestion, but that would mean implementing a lot of the events and functionality that a db-aware control has ...

I've solved it at the moment by placing both controls on the frame and letting a property decide which one is visible and active. Because they are both derived from the same ancester class this works pretty good. But it is of course a small waste of resources....

Bascy
Software developer at
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top