Denaes Posted August 31, 2003 Posted August 31, 2003 Ok, if this isn't VB Syntax specific I'll eat my trackball! I know 32bit variables will run better on a 32bit machine. int16 is there for programming on 16bit machines and same with int64, for the 64bit OS's (one of the new windows OS?). I think I've seen that Integer is now 32bit. Int32 is 32 bit. Is there any difference between the two? I'm thinking (my own logic here) that the Int(Number) variables are ment to be the standard used variables, so the programmer has full control and Integer is a legacy bit from VB6. Am I right? Are there any differences? Is one faster than the other or provide any different functionality? Quote
*Experts* mutant Posted August 31, 2003 *Experts* Posted August 31, 2003 Int16, Int32 and Int64 can store different minimum and maximum numbers. Integer is equivalent to Int32, same with Short for Int16 and Long for Int64. Quote
Administrators PlausiblyDamp Posted August 31, 2003 Administrators Posted August 31, 2003 This could be more of an issue as the .Net framework is available for 64 bit platforms. I fyou just want an integer that works well on the currently running platform then Integer would be a good choice as it will be Int32 on a 32 bit platform and Int64 on a 64 bit platform. If the size of the variable matters (memory usage, interop with other systems, binary files etc) then picking Int16, Int32 or Int64 (or the aliases as mutant mentioned) would be more appropriate. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
*Gurus* divil Posted August 31, 2003 *Gurus* Posted August 31, 2003 Integer always maps to System.Int32, whether you're on a 64bit platform or not. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.