Tagged: macros csv headers
Viewing 3 posts - 1 through 3 (of 3 total)
- AuthorPosts
- October 9, 2024 at 3:25 pm #29963Reg JohnsonParticipant
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!
October 9, 2024 at 3:57 pm #29964Yutaka EmuraKeymasterTo 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.
October 9, 2024 at 9:39 pm #29965Reg JohnsonParticipantPerfect – thanks much!
- AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.