Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Control object as variable


Reply
 
Thread Tools Display Modes
  #1  
Old 01-16-2004, 09:12 AM
Atmosphere Atmosphere is offline
Junior Contributor
 
Join Date: Jul 2003
Posts: 241
Default Control object as variable


My last question was similar but this is more straight forward

does anyone know how to make a variable point to a listbox

eg

dim temp
temp = ListBox1
temp.addItem "HIHIHIHIHI"
Reply With Quote
  #2  
Old 01-16-2004, 10:12 AM
Jasch Jasch is offline
Junior Contributor
 
Join Date: Jan 2002
Location: Madison, WI
Posts: 303
Default

Quote:
Originally Posted by Atmosphere
My last question was similar but this is more straight forward

does anyone know how to make a variable point to a listbox

eg

dim temp
temp = ListBox1
temp.addItem "HIHIHIHIHI"



Code:
dim temp As ListBox Set temp = ListBox1 temp.addItem "HIHIHIHIHI"

Jasch
__________________
"Now, cryin' won't help you, prayin' won't do you no good" Led Zeppelin - When the Levee Breaks
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MsFlexGrid & VBA msl Word, PowerPoint, Outlook, and Other Office Products 2 09-17-2006 03:21 PM
multi connections, one port? burningodzilla Communications 5 08-02-2005 05:04 PM
Datagrid control Beginner General 7 01-02-2004 11:37 AM
How to send parameters to object (Activex Control) from HTML karthiknataraj General 13 06-20-2002 11:30 PM
WinSock vbsupernewbie Communications 1 09-12-2001 10:20 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->