暂停用户输入字符串,并返回该字符串 支持的平台:视窗和 Mac OS 签名(getstring [cr] [msg])
返回值类型:字符串 用户输入的字符串;否则,如果用户按 Enter 而不键入字符串。nil 如果字符串长度超过 132 个字符,则仅返回字符串的前 132 个字符。如果输入字符串包含反斜杠字符 (\),则将其转换为两个反斜杠字符 (\\)。这允许您在其他函数中使用包含文件名路径的返回值。getstringgetstring 言论用户不能输入另一个 AutoLISP 表达式作为对请求的响应。getstring 例子(setq s (getstring "What's your first name? ")) What's your first name? Gary "Gary" (setq s (getstring T "What's your full name? ")) What's your full name? Gary Indiana Jones "Gary Indiana Jones" (setq s (getstring T "Enter filename: ")) Enter filename: c:\my documents\vlisp\secrets "c:\\my documents\\vlisp\\secrets" |
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2024-12-15 14:36
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.