On Mar 21, 2011, at 11:56 PM, Trevor DeVore wrote:

<snip>

*private* *function* _printCharXTimes pChar, pTimes

  *local* theStr



  *repeat* with i = 1 to pTimes

     *put* pChar after theStr

  *end* *repeat*

  *return* theStr
*end* _printCharXTimes

A way to do this without a loop (don't know if it's faster):

private function printCharXtimes pChar, pTimes
   set the linedelimiter to pChar
   put pChar into line pTimes of tVar
   return tVar
end printCharXtimes

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig




_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to