Concept Framework 1.0 documentation Contents | Index

ADODataSet.Delete

Name Type Access Version Deprecated
Delete function public version 1.0 no

Prototype:
public function Delete()


Description:
Performs a positional delete on the current query. Is better to avoid the positional updates and deletes. Is recommended to use the CommandText or PreparedQuery and ExecuteNonQuery to execute a "delete" query. Positional operations are sometimes dangerous to the data integrity.

Example:
	...

DataSet.CommadText="select * from my_table";
DataSet.ExecuteQuery();
...
//-----------------------------------------------------------------//
DataSet.Delete();
//-----------------------------------------------------------------//
// is equivalent with
var current_id= DataSet.FieldValues["id"].ToNumber();
DataSet.CommandText="delete from my_table where id=$current_id";
//-----------------------------------------------------------------//

Returns:
This function returns null.

Documented by Eduard Suica, generation time: Thu Oct 15 20:01:58 2009 GMT(c)2009 RadGs Software