![]() |
|
[.NET] [TuT] Using Arrays in VB 2008. - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] [TuT] Using Arrays in VB 2008. (/showthread.php?tid=336199) |
[TuT] Using Arrays in VB 2008. - MySocksAreWet - Mar 26, 2010 Lets start witha defination. An array has a single name that all members of the array share, but each member has its own unique index number. This is used to refer to each item of data numerically, instead of that shitload of different text names. Here's a nice & neat array: Code Option Strict OffHere is a comparsion of a using an array, and not using one. First the ladder (second). Code Option Strict OffOr you can make your program sweet and less time consuming like this: Code Option Strict OffNow also remember this, it's called the 'Zero Effect'. When declaring elements in an array, ALWAYS START WITH ZERO. For example, if your array consists of 15 elements, you would type 14, since you need to start at 0. Code 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14Thank you for reading. * - cybr - Mar 26, 2010 Simple, and easy to understand. Nice job. * - JIMP - Mar 26, 2010 Good post.Nice job brother. * - MySocksAreWet - Mar 26, 2010 Thread has been updated too. * - MySocksAreWet - Mar 27, 2010 Only 13 views come on guys this took a while... * - cybr - Mar 27, 2010 For example, if your array consists of 15 elements, you would type 14, since you need to start at 0. 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14 arrBitchesIHave(14) * - MySocksAreWet - Mar 27, 2010 (Mar 27, 2010 03:29 PM)iM TheoriuM Wrote: For example, if your array consists of 15 elements, you would type 14, since you need to start at 0. I'll add that thanks. |