Discussion:
Tabs and columns position!
(too old to reply)
Atmapuri
2008-06-12 11:33:07 UTC
Permalink
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
Atmapuri
2008-06-12 12:49:18 UTC
Permalink
Hi!

Found one solution. I call MoveRelative(0,1) and append
EditPosition.Charachter to a string until EOL is reached.

Thanks!
Atmapuri
Post by Atmapuri
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
Loading...