Skip to content
Home > Programming > Paltalk Bot Source Code VB .net 2010 > Reply To: Paltalk Bot Source Code VB .net 2010

Reply To: Paltalk Bot Source Code VB .net 2010

#186799
autopilot
Member

@deeva2 wrote:

I was told that indexes begin with 0. So if the tree is like this:

MAIN
SUB
SUB SUB
SUB SUB SUB

Then Sub is index of 0, SUB SUB is 1 and SUB SUB SUB is 2
Am I right?

Weather the index is 0 based or 1 based depends on what type of index and the object.

When you are talking about arrays, the starting index is always 0. But this is not an array, it is the count of an object on the form and is used within your window enum function. Since you create your own enum function, you can set the base to however you want it. In my enum coding, I found it easier to have a 1 based index.
AutoHotKeySpy

I like to use the AutoIt3 window spy that comes with AutoHotKey. It gives you the class name plus a 1 based index of the control that is below the mouse.