RSS Forums RSS
Please support our Pascal and Delphi advertiser: Programming Forums
Views: 1760 | Replies: 0
Reply
Join Date: Jul 2005
Posts: 1
Reputation: Thato is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Thato Thato is offline Offline
Newbie Poster

Error Message when updating fields

  #1  
Jul 1st, 2005
hi,
i have created a class called TNote this is my class:
TNote = Class(TObject)
NoteID : Integer;
Descr : String;
Note : String;
CreatedByIDF : Integer;
DateTimeStamp : TDateTime;
ApplicableUserID : integer;
end;
TNotes = Class(TList)
Note : TNote;
procedure ClearList;
procedure RetrieveFromDB; overload;
procedure RetrieveFromDB(AWhereClause: String); Overload;
procedure Save(ATask: TNote);
procedure Update(ATask: TNote);
procedure FillObject(AControl: TWinControl);
procedure Delete(ANote : TNote);
class function Singleton: TNotes;
end;
i want to update the current field of TNote with values from the edit boxes,dont want to create an instance of TNote everytime i update a record. The changes must be updated in the database.I have used ADOQuery object for my sql. Is it possible not to create the instance of TNote everytime i update? Please help
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 10:56 am.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC