Problem changing SALT Setting.
2 posts
• Page 1 of 1
Problem changing SALT Setting.
When I try to turn SALT's edit confirmation prompt off using ]salt.Settings 'edprompt 0' I get
Command Execution Failed: Invalid setting
but
⎕SE.SALT.Settings'edprompt 0'
works. What am I doing wrong?
Command Execution Failed: Invalid setting
but
⎕SE.SALT.Settings'edprompt 0'
works. What am I doing wrong?
- romilly
- Posts: 6
- Joined: Tue May 03, 2016 9:51 am
Re: Problem changing SALT Setting.
User commands arguments are separated by spaces, you don't need to add quotes around them.
You only need to use quotes when an argument contains spaces, a dash (which is used for delimiting modifiers) or other quotes. You can use quotes or double quotes BTW, in pairs.
In your case you are giving the user command a single argument consisting of the characters "edprompt 0" which is not a valid setting. "edprompt" is a valid setting but "edprompt 0" is not.
You should write (salt. is unnecessary since there is no other user command by the name 'settings')
⎕SE.SALT.Settings is a program that accepts a string as argument which must be quoted (like any string in APL) if it isn't a variable.
You only need to use quotes when an argument contains spaces, a dash (which is used for delimiting modifiers) or other quotes. You can use quotes or double quotes BTW, in pairs.
In your case you are giving the user command a single argument consisting of the characters "edprompt 0" which is not a valid setting. "edprompt" is a valid setting but "edprompt 0" is not.
You should write (salt. is unnecessary since there is no other user command by the name 'settings')
]settings edprompt 0or
]salt.settings 'edprompt' 0
or any of the 6 other ways (salt., no salt., quoted, not quoted) with the same result.⎕SE.SALT.Settings is a program that accepts a string as argument which must be quoted (like any string in APL) if it isn't a variable.
- DanB|Dyalog
2 posts
• Page 1 of 1
Return to Source Code Management
Who is online
Users browsing this forum: No registered users and 1 guest
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group