- AuthorPosts
- November 26, 2012 at 4:06 pm #10644LTTParticipant
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”.November 26, 2012 at 6:50 pm #10646Yutaka EmuraKeymasterHello,
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!
November 28, 2012 at 1:04 pm #10649LTTParticipantThank 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?November 28, 2012 at 7:28 pm #10651Yutaka EmuraKeymasterHello,
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.
December 4, 2012 at 8:47 am #10653LTTParticipantSo 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”.
December 4, 2012 at 4:46 pm #10655Yutaka EmuraKeymasterHi LTT,
I am fixing the “xml” vs. “XML” issue. Thanks!
- AuthorPosts
- You must be logged in to reply to this topic.