以下是您可以使用的一些代码:
- The caller:
- (SELECT_ALL "tile_name" (length listlength))
- The Function:
- ;;; ------------ SELECT ALL ITEMS IN LISTBOX
- (defun SELECT_ALL (Key Count / StartCount Value Count)
- (setq StartCount 0)
- (setq Value "0")
- (repeat (1- Count)
- (setq Value (strcat Value (itoa (setq StartCount (1+ StartCount))) " "))
- )
- (set_tile Key Value)
- )
此代码将取消选择列表框中的内容
- (set_tile "tile_name" "")
您需要确保在取消选择内容时将列表变量设置为nil。
HTH公司 |