[GiDlist] A question about TCL

Moderator: GiD Team

Post Reply
ţ־ΰ

[GiDlist] A question about TCL

Post by ţ־ΰ »

hi!
Now I want to write a TCL file with TCL Language in order to expand GID. If I call tcl-subroutine(or function) in *.bas, I want to get the value of several variants which are define in tcl-subroutine.
Now,I only can get one value from tcl-subroutine because I use RETURN in the tcl-subroutine. If I want to get several values,what should I do?

my best wish to you!

yours niu,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020621/948b7fa6/attachment.htm
Enrique Escolano

[GiDlist] A question about TCL

Post by Enrique Escolano »

The values of tcl are not returned to the bas file, actually is not possible to set a bas variable with a value returned from a tcl procedure.

All the results of tcl procedures called from the bas file (*tcl order) are dumped directly to the calculation file.
You can print from tcl multiple lines with a string including carriage returns "\n"

Example:

proc PrintTwoLines { } {
set result "First Line.\nSecond Line"
return $result
}

*tcl(PrintTwoLines) print directly to the calculation file this:
First Line.
Secont Line

Regards
Enrique Escolano
----- Original Message -----
From: 牛志伟
To: gidlist at gatxan.cimne.upc.es
Sent: Friday, June 21, 2002 12:52 PM
Subject: [GiDlist] A question about TCL


hi!
Now I want to write a TCL file with TCL Language in order to expand GID. If I call tcl-subroutine(or function) in *.bas, I want to get the value of several variants which are define in tcl-subroutine.
Now,I only can get one value from tcl-subroutine because I use RETURN in the tcl-subroutine. If I want to get several values,what should I do?

my best wish to you!

yours niu,


·编辑手机短信发送A到8001,看两性知识!情趣笑话!世界杯快迅!


163.net 收费邮箱 163.net 传真易
白金版
(100 M ,可发10M附件) 黄金版
(60 M ,可发10M附件) Fax to Email
用邮箱接收传真 Email to Fax
用邮箱发送传真
300元/年
(送1200条邮件短信) 180元/年
(送720条邮件短信) 25元/月
(不限接收传真次数) 最低预付200元
(费用比长途更便宜)
内置瑞星杀毒 | 垃圾邮件过滤 | 支持手机邮件
简单易用 | 省纸省时 | 群发功能 | 语音留言


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020621/801d8d44/attachment.htm
Post Reply