Recent

Author Topic: DBMemo TextLineBreakStyle  (Read 3615 times)

ajosifoski

  • Jr. Member
  • **
  • Posts: 55
DBMemo TextLineBreakStyle
« on: August 31, 2012, 11:17:30 pm »
Hi, I'm working on application linux/windows
and have problem with line endings in TDbf database

on linux to make database crossplatform this is not working :(
DBMemo1.Lines.TextLineBreakStyle:=tlbsCRLF;

Any ideas?

wjackson153

  • Sr. Member
  • ****
  • Posts: 267
Re: DBMemo TextLineBreakStyle
« Reply #1 on: December 27, 2012, 10:50:27 pm »
Linux does not use CRLF it uses :
From what i remember
sLineBreak is just an alias for LineEnding 
both have the same affect some rather use sLineBreak for a LineFeed and others
use sLineBreak for LineFeed
Its a personal preference really

sLineBreak
LineEnding
#10
 to setup CRLF you could assign to a Constant

const CRLF = #13#10 // Windows
const LF = #10 //Linux


But I have found sLineBreak to work best

DBMemo1.Lines.TextLineBreakStyle:=tlbsLF;  //Linux
« Last Edit: December 28, 2012, 02:07:22 am by wjackson153 »
Lazarus 1.1 r39490 CT FPC 2.7.1 i386-linux KDE
Linux Mint 14 KDE 4

 

TinyPortal © 2005-2018