codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  New to Data Access Classes  anf at 03:47 on Friday, October 06, 2006
 

im trying to re-arrange my database into classes. I have a DAClass that creates a dataset and fills it correctly.

Class DAClass
DataSet * FDs()
{
create dataAdapter;
create select command;
fill FDs;
Return FDs;
}

This part works fine i can then use the form to create a pointer to this.

DAClass * DA;
dataGrid->DataSource(DA->FDs());

this works fine also, the problem i have is updating the data from the datagrid. I have the following code but not sure if im going about this the right way.

Class DAClass
DataSet * UpdateDS(DataSet * Ds)
{
create adapter;
create update command;
update Ds;
return Ds;
}

then in the form call:

DA->UpdateDS(FDs);

but this part does not work it seems to just dispaly the same data, it is compiling and working but just not saving the correct items? can anyone point me in the right direction, thanks in advance...


-anf








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Select index`s and HTML Forms
•  Re: How to change the location?
•  Re: How can I read ASCII data file in C++
•  Display new link everyday for whole year in a sequence
•  sending soap requests
•  New to Data Access Classes
•  format date/time to return to database - second attempt
•  format date/time to return to database
•  Trying to create a C++ Object Oriented game


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2006