DeletePoint()
Summary
Deletes a point feature from a point layer.
Syntax
deleted_id = DeletePoint(integer ID)
| Argument | Contents |
|---|---|
| ID | The ID of the point to delete |
Returns
The integer ID of the deleted point.
Notes
-
The point layer must be the current layer.
-
The point layer can be an Oracle Spatial layer.
Example
// Delete a Store (point feature) where the user clicks
SetLayer("Stores")
id = RH2ID(LocateNearestRecord(ClickCoord(), 0.25))
DeletePoint(id)
Error Codes
| Error Type | Meaning |
|---|---|
| Error | The current layer is not a point layer, or is not from a standard geographic file |
| NotFound | There is no feature with the given ID |
See Also
| Function | Summary |
|---|---|
| AddPoint() | Adds a point feature to a point layer |