Page 2 of 2

Re: ASCIIOutput Elements in One Dimension Only

Posted: Mon Sep 19, 2022 7:25 pm
by Wim Gielis
kenship wrote: Mon Sep 19, 2022 7:13 pm I get it, I'll implement it.

Kenneth
Wim Gielis wrote: Mon Sep 19, 2022 5:27 pm I would add a couple of:

If ( nFlag = 0);

To avoid processing useless loops.
If you already know that nFlag <> 0, why bother with other loops ?
Hmmmm. Watch out for the variable sString, not all loops can be skipped.

Re: ASCIIOutput Elements in One Dimension Only

Posted: Tue Sep 20, 2022 1:11 pm
by kenship
Noted with thanks.

Actually I skipped the sString since I only need the project code extracted. The IF check is added at the beginning of the each section before resetting the iTimeCount to 1. The output result is the same so I am sure I'm not missing anything.

Kenneth
Wim Gielis wrote: Mon Sep 19, 2022 7:25 pm
kenship wrote: Mon Sep 19, 2022 7:13 pm I get it, I'll implement it.

Kenneth
Wim Gielis wrote: Mon Sep 19, 2022 5:27 pm I would add a couple of:

If ( nFlag = 0);

To avoid processing useless loops.
If you already know that nFlag <> 0, why bother with other loops ?
Hmmmm. Watch out for the variable sString, not all loops can be skipped.