1. My Revised Editor Correction. :)
- Posted by "Lucius L. Hilley III" <luciuslhilleyiii at JUNO.COM> Feb 22, 1997
- 1188 views
TO Find MY lines of code search for find(46, it should read something like ----------------------------- if find(46, cl[3]) then cl[3] = cl[3] & ".ex" end if ----------------------------- REMOVE these lines of code. the problem here is that IF no filename has been specified then the editor truly CRAPS out. You should put the following code in the following place. Search for file_name = delete The next two lines should read like this. ----------------------------- file_name = delete_trailing_white(file_name) if length(file_name) = 0 then ----------------------------- Insert this code BETWEEN those lines. ----------------------------- if not find(46, file_name) and compare(file_name,{}) then file_name = file_name & ".ex" end if ----------------------------- It should now look like this. ----------------------------- file_name = delete_trailing_white(file_name) if not find(46, file_name) and compare(file_name,{}) then file_name = file_name & ".ex" end if if length(file_name) = 0 then ----------------------------- BEFORE this code change loading a new file through the menu would require the full name. BUT with the change it assumes ".ex" unless a "." is spotted. BTW 46 is the ascii value of the dot/period. Enjoy --Lucius Lamar Hilley III -- E-mail at luciuslhilleyiii at juno.com -- I can only support file transfers of less than 64K and in UUE format.