Article View: borland.public.delphi.opentoolsapi
Article #70Re: Tabs and columns position!
From: Atmapuri
Date: Thu, 12 Jun 2008 12:49
Date: Thu, 12 Jun 2008 12:49
24 lines
1759 bytes
1759 bytes
Hi! Found one solution. I call MoveRelative(0,1) and append EditPosition.Charachter to a string until EOL is reached. Thanks! Atmapuri "Atmapuri" <janez.makovsek@usa.net> wrote in message news:48510979$1@newsgroups.borland.com... > Hi! > > I am using IOTAEditPosition to obtain a line > from the IDE, but EditPosition.Read returns a string > with tab charachters. EditPosition.Column however > knows the width of those tabs and returns the charachter > count based position, where each tab accounts for several > spaces. > How can I get a string where the tabs have been replaced with > correct number of spaces to have the right column position? > > Thanks! > Atmapuri >
Technical Details
Message-ID:
<48511b56@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<48510979$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10c3df,1863393f916de579 X-Google-Attributes: gid10c3df,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Atmapuri" <janez.makovsek@usa.net> Newsgroups: borland.public.delphi.opentoolsapi References: <48510979$1@newsgroups.borland.com> In-Reply-To: <48510979$1@newsgroups.borland.com> Subject: Re: Tabs and columns position! Date: Thu, 12 Jun 2008 14:49:18 +0200 Lines: 25 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6000.16480 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16545 NNTP-Posting-Host: 83.222.45.127 Message-ID: <48511b56@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1213274966 83.222.45.127 (12 Jun 2008 05:49:26 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail