List a foreach() or while() in one line
#4

yes, just put in a line that checks the length of the string every loop, and if it is greater than, say 128, print it and set any = false.
Don't forget to check the length of the string after the loop, and print the remainder if it is more than zero.
Reply


Messages In This Thread
List a foreach() or while() in one line - by hanzen - 21.12.2010, 10:06
Re: List a foreach() or while() in one line - by Rachael - 21.12.2010, 10:16
Re: List a foreach() or while() in one line - by hanzen - 21.12.2010, 10:37
Re: List a foreach() or while() in one line - by Rachael - 21.12.2010, 10:42

Forum Jump:


Users browsing this thread: 1 Guest(s)