06-19-2010, 05:55 PM
Again, your code is working OK for me :!: :?:
Two observations to your code:
Since your FOR loop in wcls has a *negative* STEP and lower limit is 0, this loop will run forever due to UByte overflow. The FOR l iterator needs to get a value below 0 (negative) to stop.
Declaring variable l (the iterator) as Byte (signed) will solve this issue. Also, you have to define firstLine, lastLine (maybe as wcls parameters?). I used 1 and 24 respectively and it worked.
Try this and tell me.
Two observations to your code:
- Values for firstLine and lastLine (uninitialized) are 0 by default.
- These variables have uByte type by default (got 2 warnings).
Since your FOR loop in wcls has a *negative* STEP and lower limit is 0, this loop will run forever due to UByte overflow. The FOR l iterator needs to get a value below 0 (negative) to stop.
Declaring variable l (the iterator) as Byte (signed) will solve this issue. Also, you have to define firstLine, lastLine (maybe as wcls parameters?). I used 1 and 24 respectively and it worked.
Try this and tell me.