Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All!
I want to limit the characters I can type.
Currently, I have come up with the following code to do so.
Maybe there is a more standard code?
(defun c:test1 ( / val);ali is gloval
(while (not (or
(= val "L") (= val "l") (= val "C") (= val "c") (= val "R") (= val "r")))
(cond
((setq val (getstring (strcat "\Enter attach position [right(R) center(C) left(L)]"
(if ali (strcat "<" ali ">") "")
":")))
(if (= val "") (setq val ali));if enter
)
)
)
(setq val (strcase val));to capital letter
(setq ali val)
)
Saitoib
Solved! Go to Solution.