Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #29963
    Reg Johnson
    Participant

    How can I check the state of the CSV “read only in column headings” in a macro?

    The command to change CSV “readonly column heading” is a toggle.
    I want to be able to turn the setting on or off in macro, not just toggle it.
    So, I need to know the current state.

    or use a command to turn it on and off, not just toggle it.

    Thanks!

    #29964
    Yutaka Emura
    Keymaster

    To turn off CSV “read only in column headings” in a macro, you can run this macro.

    
    nID = 3900;
    nStatus = editor.QueryStatusByID( nID );
    if( nStatus & eeStatusEnabled ) {
        bAlreadyOn = ( nStatus & eeStatusLatched );
    
        // turn off the Read Only in Column Headings
        if( bAlreadyOn ) {
            editor.ExecuteCommandByID(nID);
        }
    
        // turn on the Read Only in Column Headings
        //if( !bAlreadyOn ) {
        //    editor.ExecuteCommandByID(nID);
        //}
    }
    

    To turn it on, please uncomment the last 3 lines.

    #29965
    Reg Johnson
    Participant

    Perfect – thanks much!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.