Button to Switch Layout

I have searched the forum here, and read the Help file in the Prefs section, and what I have come up with for a command to make a button to switch to a saved layout is this:

Prefs LAYOUT “Main 04-24-18” LAYOUTCLOSELISTERS=yes

Thing is, when I save that button, then click it, the only thing that happens is that the Main Preferences dialog box opens up. I'm using the newest 12.7.5 version....

I even tried something I read in an old post here that said to use an = sign in the command, like this:

Prefs LAYOUT=“Main 04-24-18” LAYOUTCLOSELISTERS=yes

But that didn't make any difference either, the same thing happens, it just opens the Preferences dialog box.

What am I doing wrong here??

The commands you've posted have "curly quotes" in them, like they came from MS Word or something.

You need to use regular "straight" quote marks.

Ha... can you believe that? You are right, when I changed them, it works as needed. Funny thing is I got those from doing a copy/paste from one of Leo's past posts. The one that is here: Post From Leo

Many thanks, it was very puzzling as to why it wouldn't work for me. Lesson learned about doing copy/pastes!!

1 Like

I have disabled this "feature" of the forum software. :slight_smile: (Although it won't affect old posts, at least not immediately.)

By 'feature' do you mean being able to copy button command codes? I'm thinking that would not be a good thing, if that's the case, will it?

Or are you talking about that you went back and did an edit of that post, so that the correct quotation marks are there now?

I meant the forum turning "..." into “...” outside of code blocks.

1 Like

Ah, the power of being a Mod... Nice feature, however, so some future searcher won't be affected like that.