Getting a single column of a datagrid

Bob Sneidar bobs at twft.com
Tue Mar 22 12:48:51 EDT 2011


Oh hey that's clever!

Bob


On Mar 22, 2011, at 9:27 AM, Peter Brigham MD wrote:

> 
> 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
> 
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list