明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1900|回复: 3

[Help] how to store and extract a LIST in an environment variable?

[复制链接]
发表于 2003-4-9 11:14:00 | 显示全部楼层 |阅读模式
I have an list variable mixed with strings and real numbers
i.e. ("A" "B" 2.0 3.4 ...)
Now i want to store this list in an enviroment system varibles using
(setenv ...)
However, it can only store a string not a list...
if I transfer it into a string, it might be hard to extract the data when i need it...
Anybody get a better way to do this, please give me a hand.
"觉得好,就打赏"
还没有人打赏,支持一下
发表于 2003-4-9 12:00:00 | 显示全部楼层

MAYBE....

指令: (SETENV "LAI" "(\"A\" \"B\" 2.0 3.4)" )
"(\"A\" \"B\" 2.0 3.4)"

指令: (READ(GETENV "LAI"))
("A" "B" 2.0 3.4)

指令: (TYPE(READ(GETENV "LAI")))
LIST
发表于 2003-4-9 12:07:00 | 显示全部楼层

use your method,it's not hard.

use (vl-prin1-to-string...) transfer it to string, when you extract,after you extract a string "str",you can use (read str),you will get a list.
 楼主| 发表于 2003-4-10 21:40:00 | 显示全部楼层

thank you

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-11-29 21:11 , Processed in 0.170633 second(s), 27 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表