Here's my situation; I got a lot of code that will get the visibility parameters from a block and bring that up in the quick properties panel on the screen. The user picks the visibility they want and the code sets that. The code does more than just that, but that's just the jist of it.
My problem is using initget before the getkword. The code gets the visibility parameters and processes it into a string with all of the visilibity parameters separated by spaces for the initget to use. Since all of the blocks have visibility parameters that have an underscore in them, initget goes screwy.
I thought, "Hey, why not write code to replace the underscores with hyphens and then convert it back." Nope. That won't work because some of the visibility parameters have both underscores and hyphens.
So, does anybody have a work around for this?
Sample code:
(setq ParameterType
(getkword "\nType ["Abc
/Def
/X_y
/X_y
-z
"]"))
If it's hard to understand, just let me know and I'll try to explain better.
Rabbit