delete

how to create a custom remove row button in jqGrid?

I have a button says remove selected button. On selecting a particular row or multiple rows I want delete it from the jqGrid..How can I achieve this ? can I use delGridRow method. Any help will be appreciated. Thanks! ...

Uitableview in editing mode: how to add both the "+" (add) and "-" (delete) buttons at the same time?

Is it possible to have a uitableview that when in editing mode it shows both the red button ('-') and the green button (+) I wanted to do so so i can either delete a row or duplicate it. ...

Javascript References Array

I have a big multidimensional array that holds references to objects and I need to be able to move a reference from one spot in the array to another and then delete the original reference (or set it to undefined). The problem with this is it then deletes the recent reference. var data = [[new Obj, new Obj], [new Obj, new Obj]]; functio...

deleting random access file in java

I've created a random access file as follows: RandomAccessFile aFile = null; aFile = new RandomAccessFile(NetSimView.filename, "rwd"); I want to delete the file "afile". can anyone suggest me how to do it? ...

[Database]Follow up question about [delete(cascade/retrict)]and Update(cascade/restrict)

I would like to know when to actually use delete cascade or delete restrict AND update cascade or update restrict. I'm pretty confused using them or applying in my database. ...

Exception handling in FTP task of SSIS

Hi, I have a FTP task in my SSIS package which deletes files from FTP location. But the issue is that if the file(s) or directory is not available on the server, the task gets failed. Is there any way that I can fix this issue? Thanks looking forward for urgent reply. ...

why my heap is corrupted?

i'm getting an error - heap corruption, can't figure out why. my base : h: class Base { public : Base(char* baseName, char* cityName); virtual ~Base(); list<Vehicle*>::const_iterator GetEndList(); void PrintAllVehicles(ofstream &ResultFile) const; char* GetBaseName() const; char* GetLocation() const; v...

Deleting from ASP.NET Repeater item - erroneous deleting...?

I have a repeater which binds a set of data. Within this repeater is a column with various controls for updating, deleting, etc. These are image buttons which fire an onclick event such as "DeleteRecord". All this does is fire a stored procedure, passing in the ID of the record to delete from the CommandArgument of the object. This work...

C++ Deallocating objects stored in a vector

I have a class that creates a vector of objects. In the deconstructor for this class I'm trying to deallocate the memory assigned to the objects. I'm trying to do this by just looping through the vector. So, if the vector is called maps I'm doing: Building::~Building() { int i; for (i=0; i<maps.size(); i++) { delete[] &m...

mysql where count(column_name) = 1?

Hi there, Here is the query I am using: SELECT k_id, COUNT(k_id) AS k_count FROM template_keyword_link WHERE k_id IN(1,2,3,4,5) GROUP BY k_id; This query returns something like 1 | 6 2 | 1 3 | 4 4 | 1 5 | 9 I want to add something like AND COUNT(k_id) = 1 so I end up with 2 | 1 4 | 1 However I get invalid use a group function...

Behaviour of Delete in C++ on cast

Hi I am working on some strange piece of code ,For me its not good piece of code. PIP_ADAPTER_INFO pAdapterInfo=(PIP_ADAPTER_INFO)new char[sizeof(IP_IP_ADAPTER_INFO)]; . . . delete []pAdapterInfo; Here PIP_ADAPTER_INFO is pointer to struct IP_IP_ADAPTER_INFO , size of IP_IP_ADAPTER_INFO is 640. I wa...

How can I programmatically remove a page from a pdf document on a Mac?

Hi, I have a bunch of pdf documents and all of them contain a title page that I want to remove. Is there a way to programmatically remove them? Most of the pdf utilities I found can only combine documents but not remove pages. In the print dialog I can choose page 2 to and then print to a file, but I can't find anyway to access this fu...

NULL check before deleting an object?

This came up as one of the code review comments. Is it a good idea to check for NULL before calling delete for any object? I do understand delete operator checks for NULL internally and is redundant but the argument put forth was delete as an operator can be overloaded and if the overloaded version doesnt check for the NULL it may cra...

How to remove a link from content using php?

$text = file_get_contents('http://www.example.com/file.php?id=name'); echo preg_replace('#<a.*?>.*?</a>#i', '', $text) the link contains this content: text text text. <br><a href='http://www.example.com' target='_blank' title='title' style='text-decoration:none;'>name</a> what is the problem at this script? ...

How do I .gitignore and delete an already commited file without affecting other working copies?

I have a bare repository and two working copies - one on my machine, the other on the server. It turned out that I have to .gitignore a certain file that has to be specific for every machine. Let's call it 'settings.py'. This file is already commited. I did put 'settings.py' in .gitignore to ignore it. When I now change the file on my m...

Zend db cascade delete multiple levels

How does one make Zend Db cascade delete multiple levels of the hierarchy? For example: dealers -> products -> attributes deleting one dealer should go all the way down to attributes, and now it doesn't :( Any thoughts? ...

Why C++ delete operator doesn't set pointer to NULL?

Possible Duplicate: Why doesn't delete set the pointer to NULL? Is there any purpose for a pointer to deallocated memory? ...

Test for void pointer in C++ before deleting

I have an array in C++: Player ** playerArray; which is initialized in the constructor of the class it is in. In the destructor I have: delete playerArray; except when testing the program through Valgrind it says that there are some calls to delete to a void pointer: operator delete(void*) I want to test whether the playerArr...

Sql server bulk delete by known record ids

Hi. I need to delete many rows from sql server 2008 database, it must be scalable so i was thinking about bulk delete, the problem is that the are not many references on this, at least in my case. The first factor is that i will exactly know the ID of every row to delete, so any tips with TOP are not an option, also i will delete less ...

MySQL delete and update multiple rows

Say I have an entity A in one table and an arbitrary number of other entities B related to it in other table. I have a situation where I need to replace all those B entities with a list of new B entities in a way that there should be no duplicates. Simple way would be to issue a DELETE query first to remove all the old ones and then a...