Removing Items In A ListView


 
Thread Tools Search this Thread
Top Forums Programming Removing Items In A ListView
# 1  
Old 03-02-2011
Removing Items In A ListView

Hi everyone! So I have a listView on my Form named "officeView" I already have the code to add and update info into it, but Im having troubles deleting items out of it. :/

Now I know how to delete an Item from the listView, but I want the item before the deleted item to become automatically selected.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Removing duplicate items from an array

Hello Experts, I am trying to write a shell script to find duplicate items in an array, this is what i have tried : #!/bin/bash echo "This is another sample Progg to remove duplicate items from an array" echo "How many number do you want to insert" read n for (( i=0; i<$n; i++ )) do ... (5 Replies)
Discussion started by: mukulverma2408
5 Replies

2. UNIX for Dummies Questions & Answers

Removing PATTERN from txt without removing lines and general text formatting

Hi Everybody! First post! Totally noobie. I'm using the terminal to read a poorly formatted book. The text file contains, in the middle of paragraphs, hyphenation to split words that are supposed to be on multiple pages. It looks ve -- ry much like this. I was hoping to use grep -v " -- "... (5 Replies)
Discussion started by: AxeHandle
5 Replies

3. Shell Programming and Scripting

Moving items to a new line

Hi, Let's I have the following strings (md5): 07177edf8261d28c6a003e583fcbe38c 0717c0037b3a20fc0f0998e673f228d5 0717d611a5d24374628b98e17fd00977,0717d611a5d24374628b98e17fd00977 07189a18afdae558bb5aadfe602e4a91 0719e97d481c239667f38a3e166bed74 071af3225fe50a1fdbb42c43aac313cc... (4 Replies)
Discussion started by: talfiq
4 Replies

4. UNIX for Dummies Questions & Answers

queue items...

Hi everyone. I have a lot of programs i want to run on some data files, they need to be done sequentially. Often the output from one program is the input for the next. e.g $ progA data1 > data1.A $ progB data1.A > data1.AB $ progC data1.AB > data1.ABC repeat on data2, 3, 4, 5, 6 etc ... (4 Replies)
Discussion started by: Jay-pea
4 Replies

5. UNIX for Dummies Questions & Answers

Number of items in a directory

This should be so simple.. I have folder with about 27 subfolders in it, each folder has a number of fonts in it.. how do I get the total number of fonts for all subfolders? (2 Replies)
Discussion started by: glev2005
2 Replies

6. Shell Programming and Scripting

awk between items including items

OS=HP-UX ksh The following works, except I want to include the <start> and <end> in the output. awk -F '<start>' 'BEGIN{RS="<end>"; OFS="\n"; ORS=""} {print $2} somefile.log' The following work in bash but not in ksh sed -n '/^<start>/,/^<end>/{/LABEL$/!p}' somefile.log (4 Replies)
Discussion started by: Ikon
4 Replies

7. Shell Programming and Scripting

removing items from a file with batch

Please assist with awk scirpts: I need to remove items from a file in a batch: The file that I will remove from has the following format: abc00tef:10.81.12.3 abc01tef:10.81.12.3 abc02tef:10.81.12.3 abc03tef:10.81.12.3 abc04tef:10.81.12.3 abc05tef:10.81.12.3 I have a file which... (5 Replies)
Discussion started by: amir07
5 Replies

8. Shell Programming and Scripting

removing items with repeated first 3 character

AWK help: I have a file with following format. I need to remove any entries which are repeated based on first 3 characters. So from the following files I need to remove any entries start with "mas". mas01bct mas02bct mas03bct mas01bct mas01bct mas01bct mas11bct mas01bct mas01bct... (11 Replies)
Discussion started by: amir07
11 Replies

9. Shell Programming and Scripting

Comparing items in 2 files

Hi, I have 2 files with contents in them and I need to compare each item in each file. File1: item4 item5 File2: item2 item3 item5 item6 The items names can be of different lengths. If the items in the File1 are not in File2, delete the missing item in File1. The resulting... (12 Replies)
Discussion started by: ReV
12 Replies
Login or Register to Ask a Question
QPtrQueue(3qt)															    QPtrQueue(3qt)

NAME
QPtrQueue - Template class that provides a queue SYNOPSIS
#include <qptrqueue.h> Public Members QPtrQueue () QPtrQueue ( const QPtrQueue<type> & queue ) ~QPtrQueue () QPtrQueue<type> & operator= ( const QPtrQueue<type> & queue ) bool autoDelete () const void setAutoDelete ( bool enable ) uint count () const bool isEmpty () const void enqueue ( const type * d ) type * dequeue () bool remove () void clear () type * head () const operator type * () const type * current () const Protected Members virtual QDataStream & read ( QDataStream & s, QPtrCollection::Item & item ) virtual QDataStream & write ( QDataStream & s, QPtrCollection::Item item ) const DESCRIPTION
The QPtrQueue class is a template class that provides a queue. QValueVector can be used as an STL-compatible alternative to this class. A template instance QPtrQueue<X> is a queue that operates on pointers to X (X*). A queue is a first in, first out structure. Items are added to the tail of the queue with enqueue() and retrieved from the head with dequeue(). You can peek at the head item without dequeing it using head(). You can control the queue's deletion policy with setAutoDelete(). For compatibility with the QPtrCollection classes, current() and remove() are provided; both operate on the head(). See also QPtrList, QPtrStack, Collection Classes, and Non-GUI Classes. MEMBER FUNCTION DOCUMENTATION
QPtrQueue::QPtrQueue () Creates an empty queue with autoDelete() set to FALSE. QPtrQueue::QPtrQueue ( const QPtrQueue<type> & queue ) Creates a queue from queue. Only the pointers are copied; the items are not. The autoDelete() flag is set to FALSE. QPtrQueue::~QPtrQueue () Destroys the queue. Items in the queue are deleted if autoDelete() is TRUE. bool QPtrQueue::autoDelete () const Returns the setting of the auto-delete option. The default is FALSE. See also setAutoDelete(). void QPtrQueue::clear () Removes all items from the queue, and deletes them if autoDelete() is TRUE. See also remove(). uint QPtrQueue::count () const Returns the number of items in the queue. See also isEmpty(). type * QPtrQueue::current () const Returns a pointer to the head item in the queue. The queue is not changed. Returns 0 if the queue is empty. See also dequeue() and isEmpty(). type * QPtrQueue::dequeue () Takes the head item from the queue and returns a pointer to it. Returns 0 if the queue is empty. See also enqueue() and count(). void QPtrQueue::enqueue ( const type * d ) Adds item d to the tail of the queue. See also count() and dequeue(). type * QPtrQueue::head () const Returns a pointer to the head item in the queue. The queue is not changed. Returns 0 if the queue is empty. See also dequeue() and isEmpty(). bool QPtrQueue::isEmpty () const Returns TRUE if the queue is empty; otherwise returns FALSE. See also count(), dequeue(), and head(). QPtrQueue::operator type * () const Returns a pointer to the head item in the queue. The queue is not changed. Returns 0 if the queue is empty. See also dequeue() and isEmpty(). QPtrQueue<;type> & QPtrQueue::operator= ( const QPtrQueue<type> & queue ) Assigns queue to this queue and returns a reference to this queue. This queue is first cleared and then each item in queue is enqueued to this queue. Only the pointers are copied. Warning: The autoDelete() flag is not modified. If it it TRUE for both queue and this queue, deleting the two lists will cause double- deletion of the items. QDataStream &; QPtrQueue::read ( QDataStream & s, QPtrCollection::Item & item ) [virtual protected] Reads a queue item, item, from the stream s and returns a reference to the stream. The default implementation sets item to 0. See also write(). bool QPtrQueue::remove () Removes the head item from the queue, and returns TRUE if there was an item, i.e. the queue wasn't empty; otherwise returns FALSE. The item is deleted if autoDelete() is TRUE. See also head(), isEmpty(), and dequeue(). void QPtrQueue::setAutoDelete ( bool enable ) Sets the queue to auto-delete its contents if enable is TRUE and not to delete them if enable is FALSE. If auto-deleting is turned on, all the items in a queue are deleted when the queue itself is deleted. This can be quite convenient if the queue has the only pointer to the items. The default setting is FALSE, for safety. If you turn it on, be careful about copying the queue: you might find yourself with two queues deleting the same items. See also autoDelete(). QDataStream &; QPtrQueue::write ( QDataStream & s, QPtrCollection::Item item ) const [virtual protected] Writes a queue item, item, to the stream s and returns a reference to the stream. The default implementation does nothing. See also read(). SEE ALSO
http://doc.trolltech.com/qptrqueue.html http://www.trolltech.com/faq/tech.html COPYRIGHT
Copyright 1992-2001 Trolltech AS, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. AUTHOR
Generated automatically from the source code. BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qptrqueue.3qt) and the Qt version (3.1.1). Trolltech AS 9 December 2002 QPtrQueue(3qt)