EmEditor (text editor) Forum Index
   Questions and Answers about Macros
     How to know a doc's return method
Register To Post

Flat Previous Topic | Next Topic
Poster Thread
chjfth
Posted on: 7/3/2010 4:00 am
Quite a regular
Joined: 10/20/2006
From:
Posts: 41
How to know a doc's return method
Hello, Yukata,

I want to know the return method of current active document from macro code in Emeditor. So I tried the following VBS snippet,


Set WshShell = CreateObject( "WScript.Shell" )
Set dc = document.config
crlf_style = dc.FileSave.ReturnMethod
WshShell.Popup "crlf_style " & crlf_style


However, whether I run this macro on a Windows text file(CRLF) or Unix text file(LF), I always get "crlf_style 0". Is there a way to work me out?

Tried on EmEditor v8 and v10.0, same result.

Thank you.

Flat Previous Topic | Next Topic


Subject Poster Date
 » How to know a doc's return method chjfth 7/3/2010 4:00 am
     Re: How to know a doc's return method Yutaka 7/3/2010 9:03 am
       Re: How to know a doc's return method chjfth 7/3/2010 10:27 pm
         Re: How to know a doc's return method Yutaka 7/4/2010 12:27 pm
           Re: How to know a doc's return method chjfth 7/4/2010 5:24 pm
             Re: How to know a doc's return method Yutaka 7/4/2010 5:55 pm
               Re: How to know a doc's return method chjfth 7/5/2010 4:13 am

Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文