Correction: You can't use 2 different item delimiters in the same command.
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 Roger Eller Graphics Systems Analyst 803 North Maple Street P: 864.967.1625 Simpsonville, SC 29681 C: 864.908.0337 SealedAir.com <http://www.sealedair.com/> roger.e.el...@sealedair.com <roger.e.el...@sealedair.com> On Thu, Nov 3, 2016 at 3:11 PM, Roger Eller <roger.e.el...@sealedair.com> wrote: > A regular table field is TAB delimited. Also, refer to your "column" as > "item". > > Try this: > > on mouseUp > set the itemDelimiter to "^" > put line 1 of fld "fPRE" into PREE1 > set the itemDeliniter to TAB > put item 1 of PREE1 into item 1 of line 1 of fld "fTF" > end mouseUp > > ~Roger > > > On Thu, Nov 3, 2016 at 2:54 PM, Richmond <richmondmathew...@gmail.com> > wrote: > >> So: I have a "^" delimited textFile (.CSV) that I imported into a >> conventional textField ("fPRE") >> and then tried to do this: >> >> on mouseUp >> set the itemDelimiter to "^" >> put line 1 of fld "fPRE" into PREE1 >> put item 1 of PREE1 into column 1 of line 1 of fld "fTF" >> end mouseUp >> >> line 1 if fld "fPRE" contains this "2^45^9^1113" >> >> I wonder why this throws a "bluey": >> >> button "Button": compilation error at line 4 (Handler: bad command) near >> "1", char 30 >> >> OR . . . to put things another way: How does one refer to columns in a >> tableField? >> >> Richmond. >> >> > > _______________________________________________ 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