Getting a single column of a datagrid

Peter Brigham MD pmbrig at gmail.com
Tue Mar 22 12:27:49 EDT 2011


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
pmbrig at gmail.com
http://home.comcast.net/~pmbrig







More information about the use-livecode mailing list