Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 23rd, 2007, 03:05 AM
Registered User
 
Join Date: Apr 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Empty a listbox

Hi!
 I have a little problem with a listbox.
Every time I load new information to it, it doesn't empty it. It just shows me the old contents and if scroll down then it shows me the new content.
 I have tried using the following code:

lsttabell.contet Clean

But I don't know were to put it in the code or even if it's correct to do it that way.

Please HELP me!!!

 
Old April 23rd, 2007, 07:13 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hi there..

are you using vb 5, 6, .net???

i don't think that code is valid in any context...

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
 
Old April 25th, 2007, 06:31 AM
Registered User
 
Join Date: Apr 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sunhuaiyu
Default

If you are using VB 5 or VB 6. You can use List1.Clear to clear all the item.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Is String.Empty spinout ASP.NET 2.0 Basics 6 July 10th, 2007 05:55 AM
multiple Listbox values in another listbox terryv Excel VBA 0 June 27th, 2007 07:01 AM
why my variable is empty? Joann Beginning VB 6 2 March 19th, 2007 04:08 PM
Is the clipboard empty? achinfish Excel VBA 1 July 15th, 2006 04:34 PM
I'm back :) Listbox var from listbox MichaelTJ .NET Web Services 2 October 21st, 2003 07:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.