944,106 Members | Top Members by Rank

Ad:
Jul 1st, 2005
0

Error Message when updating fields

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Thato is offline Offline
1 posts
since Jul 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Pascal and Delphi Forum Timeline: calnder programming in turbo pascal With Text & background !!
Next Thread in Pascal and Delphi Forum Timeline: help with for loop





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC