几何尺寸与公差论坛

 找回密码
 注册
查看: 830|回复: 0

【转帖】no endscrit - c-dmis user forum.txt

[复制链接]
发表于 2009-4-6 20:26:44 | 显示全部楼层 |阅读模式
no endscrit?
i'm desarately trying to get the samle code running in 4.2. using the code editor, i create a samle file, testscrit.bas:
sub main
dim a as object
set a = createobject("cdlrn.alication")
dim art as object
set art = a.activeartrogram
dim var as object
set var = art.getvariablevalue("v2")
if not var is nothing then
msgbox "starting scrit = " & var.longvalue
var.longvalue = var.longvalue + 1
msgbox art.setvariablevalue("v2", var)
else
msgbox "var not there"
end if
end sub
the code in the art rogram:
c2 =comment/inut,no,'enter v2'
assign/v2 = int(c2.inut)
cs1 =scrit/filename= c:\rogram files\wai\c-dmis v42\testscrit.bas
function/main,show=yes,,
startscrit/
comment/oer,no,variable is now
,v2
********
if i highlight and run the above block, nothing aears to haen. for instance, i set the variable to 99, run the block, and it comes back saying that the variable is 99.
if i just run the basic code, i get a msgbox saying that it is 99, then one saying "true" (the assignment was cessful??). if i run the code again, it says that the value is 100, then 101, then 102. but nothing haens to the variable inside the rogram.
the examle shows a line saying "endscrit/", but no h line aears in my code window. i'm susecting this is the roblem here, but can find now way to insert that code in the rogram.
any thoughts? i forgot how fun basic was, with no debugger, tools, etc.
tia, tweaks
yeah, you need to f3 the scrit section in your rogram.
__________________
c-dmis v4.2mr1
horseower is how hard you hit the wall.
torque is how far you can take the wall with you.
">fff">
vt.se
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-23 04:53 , Processed in 0.033885 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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