Hi Mike, I am using dgText but will try using dgData. Have you tried this? I'm curious as to how the data looks in the datagrid column. I'm using a dg table with a fixed line height so I'm guessing everything after the first return won't be visible? Pete
On Wed, Jan 4, 2012 at 11:28 AM, Mike Bonner <[email protected]> wrote: > Are you setting your data using dgtext? If so you might change your method > so that you can set the dgdata instead. Put your data into an array with > the first key designating the row. > > So simplest form, if you have say.. a few paragraphs of txt you want to put > into your datagrid > > put mydata into tdataA[1]["thetextWithReturns"] > > Using dgData rather than dgText kinda makes having cr's in the data a moot > point. dgtext goes by rows, dgData goes by the toplevel numeric index key. > > To work with existing data you can use dgdataofline and dgdataofindex > > On Wed, Jan 4, 2012 at 12:18 PM, Pete <[email protected]> wrote: > > > In my haste to implement this, I realised I do not know how to define > ascii > > characters to LC! Is there a function or a numeric notation to do that? > > Thanks > > Pete > > > > On Mon, Jan 2, 2012 at 5:28 PM, stephen barncard < > > [email protected]> wrote: > > > > > replace return with VT (vertical tab) ascii 11; do the reverse for > > display > > > in a field. VT was the "returns-in-field" line delimiter for Filemaker. > > > URLEncode/Decode can put data on one line too. > > > > > > On 2 January 2012 17:20, Pete <[email protected]> wrote: > > > > > > > Wondering if anyone has a good technique for dealing with carriage > > > returns > > > > within data loaded into a datagrid column? The dg takes the cr as > the > > > end > > > > of the row which messes up the datagrid pretty badly. Seems like > > there's > > > > no alternative but to replace the cr with some displayable character > > but > > > > maybe there's another way? > > > > > > > > > > > > -- > > > > Pete > > > > Molly's Revenge <http://www.mollysrevenge.com> > > > > _______________________________________________ > > > > use-livecode mailing list > > > > [email protected] > > > > Please visit this url to subscribe, unsubscribe and manage your > > > > subscription preferences: > > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > > > > > > > > > -- > > > > > > > > > > > > Stephen Barncard > > > San Francisco Ca. USA > > > > > > more about sqb <http://www.google.com/profiles/sbarncar> > > > _______________________________________________ > > > use-livecode mailing list > > > [email protected] > > > Please visit this url to subscribe, unsubscribe and manage your > > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > > > > > -- > > Pete > > Molly's Revenge <http://www.mollysrevenge.com> > > _______________________________________________ > > use-livecode mailing list > > [email protected] > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > -- Pete Molly's Revenge <http://www.mollysrevenge.com> _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
