Message 1 of 11
GetKeywords and '-' in the keyword
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I am using GetKeyWords() like this:
Snippet
var pko = new PromptKeywordOptions("Define projection:") { AllowArbitraryInput = true }; foreach (var k in new[] { "X", "Y", "Z", "-X", "-Y", "-Z" }) pko.Keywords.Add(k); var projection = Utils.Editor.GetKeywords(pko);
When I select any of key words starting with '-' the prompt result status is PromptStatus.OK, but the result itself is an empty string. So what is going on? I have understood that there is some special handling for certain characters, but is the '-' one of the special characters.
How I use GetKeyWords() with strings starting with '-' and where to get the documentation explaining how the get keywords really works ?
br,
Antti