Number of spaces in Tab - OpenEdge

Status
Not open for further replies.
U

user2831737

Guest
In OpenEdge the tab can be configured to any number of spaces, usually is configured to 4 spaces. To insert a tab in a text can be used: ~t. What I want to find is how many spaces have the tab set.

For example, I am reading a file line by line, and for each line I want to see how many spaces are at the beginning.

I am using:

iNoOfBeginningSpaces = index (cLine, left-trim (cLine)) - 1.


But if the line begins with 3 tabs then it gives me 3, and not the number of the spaces: 3 * spaces from tab. Is there a way to find the number of beginning spaces of a line, treating the tab as x numbers of spaces?

Continue reading...
 
Status
Not open for further replies.
Top