rp_data::delete

query This method will delete all records resulting from the query. You must include only the "Where" part of the query. (Public)

o.delete()

Return Value

True or False

Parameters

lnPk
This is the PK value to delete

llIschild
This tells the method that this delete is being called as part of a parent child delete call. This
should not be set to true by users. It is used internally ONLY.


Remarks

This will delete the record in o.oData to the relevant table.

Any errors will be placed into o.cErrorMsg and o.lError will be true

If the property o.lusetransactions is set to true then the object will use the Transaction mode
when saving the data.

The steps in the process are as follows;

First it determines if control is at the server or client. If at the client
then Clientsidevalidation("DELETE") is called.

If at the server then serversidevalidation("DELETE") is called.

The the Default() method for the class is called

Then if the table o.cAlias is in use it performs a TableUpdate(.t.) on it

Then if all the above has returned True the Transaction is committed. There
On each of the above to make sure if it returns false the transaction is
RolledBack and control returned at that point.

Then if all the above returns True and o.lpostsavelogic = True the
method o.postdeletelogic() is called. Remember at this point that
the data has been saved so nothing can be rolled back if this fails.
This method is just for ancillary data functions associated with this
data being saved.


Example

o.Delete()

See also:

Class rp_data | o.lvalidateonsave | o.lcreateidonsave | o.lfieldvalidate | o.lpostsavelogic | o.lpresavelogic | o.lrecordvalidate |


Last Updated: 23/11/2005