Re: Win32Lib IDE Extra Lines

new topic     » goto parent     » topic index » view thread      » older message » newer message

Whoops!  The solution was a little more involved than I thought.  You
actually need to check the sequence that's being puts()'d to see if it has a
'\n' at the end.  If not, you need to add it, or any new code you write
becomes one very long line.

Here's what I changed in writeControlToPrj in IDE_PROJ.EW


for k = 1 to length( ctrl[Code][j] ) do
    if ctrl[Code][j][k][length( ctrl[Code][j][k] )] = '\n' then
    -- Need to check for '\n' to avoid adding blank lines
        puts( outFile, ctrl[Code][j][k] )
    else
        puts( outFile, ctrl[Code][j][k] & '\n' )
    end if
end for

The same thing goes for writeControlToEXW.  Prolly figured it out already,
Irv, but I thought I should mention it...

Matthew W Lewis

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu