Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 09:48 PM
Miljours
Guest
 
Posts: n/a
Default Very dumdum questions

Hi & TIA everyone

Q1 : Is there a way, at runtime, one may put Data in a ComboBox
permanently?

Q2 : Is there a maximum of item in ComboBox?

Q3 : What is the difference between LIST property and ITEM property?


Thanks
JMM


  #2  
Old July 17th, 2005, 09:48 PM
Larry Serflaten
Guest
 
Posts: n/a
Default Re: Very dumdum questions


"Miljours" <sruojlim@yahoo.ca> wrote[color=blue]
>
> Q1 : Is there a way, at runtime, one may put Data in a ComboBox
> permanently?[/color]

No. Like the program itself, data has to be stored somewhere. If its
not in the program when you compile it, then you will have to load it
from a file when the program runs.
[color=blue]
>
> Q2 : Is there a maximum of item in ComboBox?[/color]

Yes, but it is far larger than you should ever put in a list. It is not
an exact number, but can be dependant on the size of the items you add.
Do some tests to see if it will be enough....

[color=blue]
> Q3 : What is the difference between LIST property and ITEM property?[/color]

Of what? My combo boxes don't have an Item property.
The List property is an array of the items you have added to the 'list'.

LFS





-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
  #3  
Old July 17th, 2005, 09:48 PM
Miljours
Guest
 
Posts: n/a
Default Re: Very dumdum questions



Thank you Larry for rapid answers

In my comboboxes, i do have an ITEMDATA property and also a LIST property.
Both seems to me equivalents. I Havn't experienced these two yet.

Thanks (many)

JMM





"Larry Serflaten" <Abuse@SpamBusters.com> a écrit dans le message de
news:4072127d$1_5@corp.newsgroups.com...[color=blue]
>
> "Miljours" <sruojlim@yahoo.ca> wrote[color=green]
> >
> > Q1 : Is there a way, at runtime, one may put Data in a ComboBox
> > permanently?[/color]
>
> No. Like the program itself, data has to be stored somewhere. If its
> not in the program when you compile it, then you will have to load it
> from a file when the program runs.
>[color=green]
> >
> > Q2 : Is there a maximum of item in ComboBox?[/color]
>
> Yes, but it is far larger than you should ever put in a list. It is not
> an exact number, but can be dependant on the size of the items you add.
> Do some tests to see if it will be enough....
>
>[color=green]
> > Q3 : What is the difference between LIST property and ITEM property?[/color]
>
> Of what? My combo boxes don't have an Item property.
> The List property is an array of the items you have added to the 'list'.
>
> LFS
>
>
>
>
>
> -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
> http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
> -----== Over 100,000 Newsgroups - 19 Different Servers! =-----[/color]


  #4  
Old July 17th, 2005, 09:48 PM
Korejwa
Guest
 
Posts: n/a
Default Re: Very dumdum questions


The List property is an array of strings. (to be displayed)

The ItemData property is an array of Longs. (to be used for identifying
List items in code)
You might use the ItemData property if several items in the list have the
same meaning. Or you might use the ItemData property if the user selects
an item which has some numeric meaning. It's there if you need it.

Don't put more than 32767 (the maximum integer value) items in a ListBox
or ComboBox. VB won't stop you from adding more, but some funny thing
happen. For example, if you add a few more items, the ListCount property
will return the wrong value. Certainly, if you have more items than this,
you should be using a String array, a temp file, or some other method.

I don't understand the first question. If your code doesn't have the
ability to remove items, then the items are permenant. (?)



On Mon, 5 Apr 2004 19:03:00 -0400, Miljours <sruojlim@yahoo.ca> wrote:
[color=blue]
> Hi & TIA everyone
>
> Q1 : Is there a way, at runtime, one may put Data in a ComboBox
> permanently?
>
> Q2 : Is there a maximum of item in ComboBox?
>
> Q3 : What is the difference between LIST property and ITEM property?
>
>
> Thanks
> JMM
>
>[/color]

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,248 network members.