05-07-2008 10:38 AM
05-07-2008 11:00 AM
krispiekream wrote:
i want to click adv to go to the next position where there is a device for instants.
In your original code, you start searching at position 0, then position 1, etc. irrespective of where you found the first TRUE. This is incorrect coding.
05-07-2008 11:05 AM - edited 05-07-2008 11:07 AM
05-07-2008 11:07 AM - edited 05-07-2008 11:10 AM
05-07-2008 11:12 AM - edited 05-07-2008 11:12 AM
05-07-2008 11:13 AM
05-07-2008 11:18 AM
05-07-2008 11:19 AM
05-07-2008 11:22 AM - edited 05-07-2008 11:22 AM
Yes, you do! If you define the first element (index=0) as #1, you need to add 1 for all other indices too. It does no matter where the position is.
krispiekream wrote:
but how about if my positions are not always odd elements?
i dont wnat to add by one all the time right?
05-07-2008 11:22 AM - edited 05-07-2008 11:28 AM