0-based or 1-based: VB6 Index Summary (continuously updating)

Source: Internet
Author: User

Copyright Notice: Can be reproduced at will.Hyperlink formMark as followsArticleOriginal Source and author information andThis statement

Author:Xixi

Source: http://blog.csdn.net/slowgrace/archive/2009/04/23/4102056.aspx

It is always dizzy when all kinds of indexes are 0-based or 1-based. Every time you have to spend a lot of time to check them, simply make a summary here. When you learn new things, you will be able to check the old ones here :)

0-based

(1) array: the default value of the array is 0-based. The Return Value of the ubound function is also 0-based.

(2) tabindex: 0-based.

(3) ComboBox and ListBox: The index of items in the drop-down list is 0-based. When they have multiple columns, the index of columns is also based on 0.

(4)Mshflexgrid:Its Col and row attributes are counted from 0.

(5) forms and controls collections. In Visual Basic, most of the old sets are based on 0.

 

1-based

(2) tabstrip: The index of its tab is 1-based.

() Index of collection

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.