Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic System Architect (steve huntington)
Decrease font size
Increase font size
Topic Title: how to insert data into Listbox1 ?
Topic Summary:
Created On: 31-Jul-2008 07:45
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 31-Jul-2008 07:45
User is offline View Users Profile Print this message


chunjia wang

Posts: 39
Joined: 11-Oct-2007

hi,all.
In SA , I use VBA editor , I pull a Listbox1 on the panel, but can not insert data to the Listbox1? How should I do?

First , I choose the "Tools" -> "References" , then include "Microsoft Windows Common Controls 6.0(SP6)".
Second ,
Dim item as MSComctlLib.ListItem
Set item = Listbox1.listitems.add ---- error

But , it is error , "listitems " not find .
In the Object Brower , in the "MSComctlLib" ,I can find the class "listitems" ,and its method "add", why?
How should I do if I want to add data into listbox1, thanks.

Report this to a Moderator Report this to a Moderator
 31-Jul-2008 16:27
User is offline View Users Profile Print this message


Elvin Stern

Posts: 9
Joined: 18-Jul-2006

Originally posted by: chunjia wang

hi,all.

In SA , I use VBA editor , I pull a Listbox1 on the panel, but can not insert data to the Listbox1? How should I do?



First , I choose the "Tools" -> "References" , then include "Microsoft Windows Common Controls 6.0(SP6)".

Second ,

Dim item as MSComctlLib.ListItem

Set item = Listbox1.listitems.add ---- error



But , it is error , "listitems " not find .

In the Object Brower , in the "MSComctlLib" ,I can find the class "listitems" ,and its method "add", why?

How should I do if I want to add data into listbox1, thanks.



I think all you have to do is code

Listbox1.AddItem "New Item"


Edited: 31-Jul-2008 at 16:31 by Elvin Stern
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic System Architect forum.
There are currently 0 users logged in.
The most users ever online was 16 on 30-Oct-2008 at 14:46.
There are currently 0 guests browsing this forum, which makes a total of 0 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.