Thread View: borland.public.jbuilder.database
2 messages
2 total messages
Started by stevep
Thu, 13 Mar 2008 09:05
TextDataFile not saving with \r\n characters at end of line
Author: stevep
Date: Thu, 13 Mar 2008 09:05
Date: Thu, 13 Mar 2008 09:05
14 lines
1244 bytes
1244 bytes
Hi Can somebody tell me how I can control the end of line character on a save of TextDataFile class sample code does something like... tableDataSet1.getDataFile().save(tableDataSet1); is there a property to control the end of each record. On a windows machine it is only adding a \n to the end of record? Additional information.. the System property line.seperator is set to \r\n. So there seems to be a bug in TextDataFile class?
Re: TextDataFile not saving with \r\n characters at end of line
Author: John Moore (TeamB)
Date: Mon, 19 May 2008 01:32
Date: Mon, 19 May 2008 01:32
41 lines
2141 bytes
2141 bytes
It appears, looking at the source code, that it may get that setting from the schema file. separator = schemaFile.separator; ..during the load metadata call.. I don't have the time to dig deeper tonight but if that does not make any sense.. let me know and will.. (dig deeper, that is..) Hope that gets you going in the right direction.. John.. stevep wrote: > Hi > > Can somebody tell me how I can control the end of line character on a save of TextDataFile class > > sample code does something like... > > tableDataSet1.getDataFile().save(tableDataSet1); > > is there a property to control the end of each record. On a windows machine it is only adding a \n to the end of record? > > Additional information.. the System property line.seperator is set to \r\n. > > So there seems to be a bug in TextDataFile class? > > -- ============================================= TeamB are volunteer helpers. Please DO NOT REPLY VIA EMAIL! Post all questions and replies to this newsgroup ONLY For papers on DataExpress, Applets, JSP, and Web Development go to: http://www.microps.com/mps/paperFAQ.html ====================================================
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads