Viewing 1 post (of 1 total)
  • Author
  • #10460

    Hi Yutaka.

    Would it be possible to add support
    for permanent/persistent variables?

    I want to define an VAR as persistent
    for the whole session of the current
    EmEditor instance. Or even store it
    to an user.INI to have it persistent
    after an Editor restart.

    Perhaps something like:
    editor.SetPermVar( ‘myVar’, value, local/global, persistent=true, non-default-INI-file );

    Script 1

    X = 'One Two Three'; 
    editor.SetPermVar( 'myVar', X, local );

    Script 2

    LastValue = editor.GetPermVar( 'myVar' );
    myValue = prompt('Value:', LastValue); // 'One Two Three';

    What do you think?

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.