Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #10644

    LTT
    Participant

    1.
    cDSV = document.Config.File.Delimiter;
    can get the current Delimiter.
    But
    document.Config.File.Delimiter = cDSV;
    document.Config.Save();
    can not set it.

    2.
    Can not get the content by using [Find Macro Keyword] command on “Delimiter”.

    #10646

    Yutaka Emura
    Keymaster

    Hello,

    1. You will need to load the Config object into the memory before you can modify and save it. Please rewrite like this:

    cfg = document.Config;
    cfg.File.Delimiter = cDSV;
    cfg.Save();

    2. I will add Delimiter to the help index.

    Thanks!

    #10649

    LTT
    Participant

    Thank you.
    I have some more questions and hope you will give a reply.

    1.
    I want to load the settings of the existing “X” configuration into the current one.


    oCfg = document.Config;
    oCfg.Load("X");
    oCfg.Save();

    But nothing happened.
    How to use the Load method?

    2.
    I can add a configuration by using document.Config.Save(“X”).
    But is there a macro way to delete a configuration?

    #10651

    Yutaka Emura
    Keymaster

    Hello,

    When you do something like below, you can change the configuration properties for C++:

    cfg = document.Config;
    cfg.Load( "C++" );
    cfg.File.Delimiter = "|";
    cfg.Save();

    You can’t add or delete a configuration by macros.

    #10653

    LTT
    Participant

    So the Load method can be used to get or set the properties of a non-current configuration. That’s what I wanted. Thanks.

    Actually, document.Config.Save(“X”) duplicates the current configuration. So I used it to add a configuration.

    Minor things:
    I think “Delimiter” should be included in Highlight (1). (JSEE/VBEE, reset.)

    If I use document.ConfigName = “xml”, and the existing configuration name is “XML”, I think the status bar should display “XML”, rather than “xml”.

    #10655

    Yutaka Emura
    Keymaster

    Hi LTT,

    I am fixing the “xml” vs. “XML” issue. Thanks!

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

Share with friends... Tweet about this on TwitterShare on FacebookShare on Google+Email this to someone