Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
strings initialized?
#7
Again, your code is working OK for me :!: :?:

Two observations to your code:
  1. Values for firstLine and lastLine (uninitialized) are 0 by default.
  2. 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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)