How do I reset iCount
How can I reset iCount in this script. I tried -1 but it is not working.
Check out the code: PHP Code:
|
Re: How do I reset iCount
iCount = 0 ???
|
Re: How do I reset iCount
Why youre recreating the variable iCount in case 3. Just do iCount = 0 in case 3 without new
Its already created in global |
Re: How do I reset iCount
Quote:
|
Re: How do I reset iCount
Quote:
|
Re: How do I reset iCount
Will it work like this:
PHP Code:
|
Re: How do I reset iCount
Firstly, every variable on creation is zero (0) so no need to assign zero to it.
PHP Code:
PHP Code:
Thirdly, this PHP Code:
PHP Code:
PHP Code:
|
Re: How do I reset iCount
Quote:
|
Re: How do I reset iCount
It's zero based so you have to start from zero.
|
Re: How do I reset iCount
Actually not, you increment before the switch so first value will be 1.
|
| All times are GMT -4. The time now is 20:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.