Upgrade to CrackingForum VIP for Instant Access
 

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.

Reply Post New Thread
 
LinkBack Thread Tools Display Modes

 
Old 01-25-2010, 03:23 PM  
Bub
Junior Member
 
Join Date: Nov 2009
Posts: 42
Reputation: 1
Default VB6: ListCount > 32k

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:

Label1.Caption = List1.Listcount
When The listbox contains more than the limit size?(32,767 I believe)
Bub is offline  
Reply With Quote
Vote for Member of the Month

 
Old 01-25-2010, 03:37 PM  
Coder
 
Join Date: Oct 2009
Posts: 223
Reputation: 212
Default

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).
Phr0z is offline  
Reply With Quote
Vote for Member of the Month

 
Old 01-26-2010, 01:28 PM  
Bub
Junior Member
 
Join Date: Nov 2009
Posts: 42
Reputation: 1
Default

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.
Bub is offline  
Reply With Quote
Vote for Member of the Month

 
Old 04-10-2010, 12:22 PM  
Elite Member
 
Taco-King's Avatar
 
Join Date: Apr 2009
Location: In some girls pants :)
Posts: 395
Reputation: 304
Default

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
Taco-King is offline  
Reply With Quote
Vote for Member of the Month

 
Old 04-10-2010, 12:58 PM  
Platinum Member
 
Join Date: Mar 2009
Posts: 858
Reputation: 226
Default

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
Cairns is offline  
Reply With Quote
Vote for Member of the Month
Who Added Reputation:
Taco-King (04-10-2010)

 
Old 04-21-2010, 10:24 AM  
Coder
 
Join Date: Oct 2009
Posts: 223
Reputation: 212
Default

Or switch to vb.net :p
Phr0z is offline  
Reply With Quote
Vote for Member of the Month

 
Old 04-21-2010, 11:09 AM  
.: iRc0der :.
 
nEw_boY's Avatar
 
Join Date: Feb 2010
Location: India
Posts: 358
Reputation: 315
Default

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.
nEw_boY is offline  
Reply With Quote
Vote for Member of the Month

 
Old 06-27-2010, 03:21 AM  
Coder
 
Join Date: May 2010
Posts: 91
Reputation: 93
Default

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.
imadthemad is offline  
Reply With Quote
Vote for Member of the Month

 
Old 06-27-2010, 03:24 AM  
Coder
 
Join Date: May 2010
Posts: 91
Reputation: 93
Default

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.
imadthemad is offline  
Reply With Quote
Vote for Member of the Month

 
Old 06-28-2010, 02:28 AM  
Platinum Member
 
Join Date: Mar 2009
Posts: 858
Reputation: 226
Default

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.
Cairns is offline  
Reply With Quote
Vote for Member of the Month
Reply Post New Thread



Bookmarks


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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.1
CrackingForum.com ©2009 - 2010

Our Friends: Wrzscene | DLIndex | CHF | Gudz Cracking/Downloads
Hackerzhub | MGKiller | WarezxtremE | McGrhillwarez