Re: Win32Lib IDE Extra Lines
- Posted by Matthew Lewis <MatthewL at KAPCOUSA.COM> Nov 09, 1999
- 518 views
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