tableField . . . refering to columns
bobsneidar at iotecdigital.com
Fri Nov 4 20:24:33 CET 2016
Agreed Peter. The beauty of LC is the ability to piece together things to create a more functional whole. At some point we are just asking the devs to do all our coding for us.
> On Nov 4, 2016, at 10:05 , Peter M.Brigham <pmbrig at gmail.com> wrote:
> On Nov 3, 2016, at 3:15 PM, Roger Eller <roger.e.eller at sealedair.com> wrote:
>> on mouseUp
>> set the itemDelimiter to "^"
>> put line 1 of fld "fPRE" into PREE1
>> put item 1 of PREE1 into tJustTheItem
>> set the itemDeliniter to TAB
>> put tJustTheItem into item 1 of line 1 of fld "fTF"
>> end mouseUp
> It’s pretty easy to do this kind of thing with some utility handlers. I have a collection of them to enable me to process text in various ways, including:
> getItem(pContainer, pIndex, pDelim)
> getColumns(pData, pColNbrs, pDelim)
> deleteColumns(pData, pColNbrs, pDelim)
> replaceItem pList, pItemNbr, pNewItem, pDelim
> etc. This allows text processing (which I do a lot of) completely within LC and turns script-it-anew-each-time chunks of code into one-liner calls. Most of these are available in the Master Library, I believe. Or email me if you’re interested.
> — Peter
> Peter M. Brigham
> pmbrig at gmail.com
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode