![]() |
![]() |
| Programming Help Need help with something? Ask here and let our members help you. This is not a request forum. All requests belong in User Made Programs. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
![]() |
|
|
|
|
Junior Member
Join Date: Nov 2009
Posts: 42
Reputation: 1
|
I know this is a very well known problem using listboxes/comboboxes.. I searched for a fix to this but no luck. How can I show:
Code: [Check Download Links]
Label1.Caption = List1.Listcount |
|
|
Vote for Member of the Month |
![]() | |
![]() |
|
|
|
![]() Coder
Join Date: Oct 2009
Posts: 223
Reputation: 212
|
Arent integers -32767<->32767 (cant remember for sure). Anyway there are custom listbox controls out there who can have more, or just switch to vb.net (you won't have that prob again).
|
|
|
Vote for Member of the Month |
![]() | |
![]() |
|
|
|
|
Junior Member
Join Date: Nov 2009
Posts: 42
Reputation: 1
|
Yeah once intergers hit 32,767 they go negative until -32767 then go positive again(I believe).. ect
Last edited by Bub; 01-26-2010 at 01:28 PM. |
|
|
Vote for Member of the Month |
![]() | |
![]() |
|
|
|
![]() Elite Member
Join Date: Apr 2009
Location: In some girls pants :)
Posts: 395
Reputation: 304
|
Yes, but sometimes if you make it work correct or do some shit like me anyother value lets say b will = 0. And the a will = -32767
__________________
My First Signature I ever made!!!!!! To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. If I helped you please Rep Me |
|
|
Vote for Member of the Month |
![]() | |
![]() |
|
|
|
|
Platinum Member
Join Date: Mar 2009
Posts: 858
Reputation: 226
|
The listbox has this problem because its based on integers and integers can only handle like 32k. If you had to use a long then you would be able to handle a lot more than an integer so all you gotta do is find a listbox on pscode.com such as eList or some shit that is based on a long, or a double index.
- Cairns |
|
|
Vote for Member of the Month |
![]() | |
|
![]() |
|
|
|
![]() Coder
Join Date: Oct 2009
Posts: 223
Reputation: 212
|
Or switch to vb.net :p
|
|
|
Vote for Member of the Month |
![]() | |
![]() |
|
|
|
![]() .: iRc0der :.
Join Date: Feb 2010
Location: India
Posts: 358
Reputation: 315
|
extList control FTW>
Can hold more then you want...!!
__________________
I`m here... To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. |
|
|
Vote for Member of the Month |
![]() | |
![]() |
|
|
|
![]() Coder
Join Date: May 2010
Posts: 91
Reputation: 93
|
max value of a 32 bit integer is 2,147,483,647
i dont know if vb6 max value is the same as a 16bit integer or 32 bit integer in .net anyway in vb6 im sure there are pre made user components which function better than listbox. Also i have strong faith in you that you can make one its not so hard..but if you cant look on vbforums codebank or just use google u will find many vb6 listbox components that are better than the given vb6 listbox.
__________________
You need the following components installed to run my software: Dot net framework 3.5 (35mb): To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. |
|
|
Vote for Member of the Month |
![]() | |
![]() |
|
|
|
![]() Coder
Join Date: May 2010
Posts: 91
Reputation: 93
|
also i dont know if this will work (i highly doubt it) but hell its worth a shot:
Label1.Caption = CLNG(List1.Listcount) also try Label1.Caption = CSTR(CLNG(List1.Listcount)) if both dont work than what you need is a listbox control where the property listbox.count is a long, not an integer. i checked the max value of a 16bit integer is 32767 so yeah i guess vb6 integer is inherently 16bit.
__________________
You need the following components installed to run my software: Dot net framework 3.5 (35mb): To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. |
|
|
Vote for Member of the Month |
![]() | |
![]() |
|
|
|
|
Platinum Member
Join Date: Mar 2009
Posts: 858
Reputation: 226
|
This is due to the fact of micronoobs setting Indexes to base on integers. Integers can only hold up to like 32k of numbers were is a long can hold a hell of a lot more. So the controls you will find will be based on 'Longs', which is why they can hold lot's more. I suggest extList control.
|
|
|
Vote for Member of the Month |
![]() | |
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
![]() |
|
![]() |










its not so hard..







Linear Mode




