Help, vbScripts not working!!

About Truespace Archives

These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.

They are retained here for archive purposes only.

Help, vbScripts not working!! // New Users

1  |  

Post by PrimMac // Mar 14, 2006, 5:08am

PrimMac
Total Posts: 78
Hello everyone, I am having a very strange problem. I draw a Curve on Modeler view, and throw a new vbScript command object into LE. I add a "Space 3D Package\Curve" attribute called "c", so now the object's code looks like this:


' Execute

' Called to execute the command

Sub Execute(params)


Set c = params.conValue("c")


' TODO: put your action code here


End Sub


Note that I have not yet added any code of my own. When I run this command, nothing should happen, but I get an "Object required: 'params.conValue(...). This doesn't sound right to me, as I haven't added code of my own. Does this happen because it is a "vbScript Command" and not a "vbScript object"? Or is there another reason?

Post by peterma // Mar 14, 2006, 5:54am

peterma
Total Posts: 48
Sometimes the error messages like this appears while adding new attributes to script objects/commands. It can be related to empty value of the attrribute or so.

Post by Norm // Mar 14, 2006, 8:40am

Norm
Total Posts: 862
pic
If I remove the "Set", I do not get the error.
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn