Rik's Treehouse
>
Babbling in Binary
>
My Software
>
Orphanware
>
R2DToo
>
R2DToo Help
>
Automation
> SetParam
SetParam
Declaration
Parameters
Return Value
Remarks
Example
See Also
Declaration
object.SetParam(name,value)
Parameters
object
Required. Always the name of a
R2DToo.FrontEnd
object.
name
Required. The name of a model parameter (without the trailing
[]
properties, case insensitive).
value
Required. The value to set the parameter to.
Return Value
Returns 1 on success, 0 on fail.
Remarks
Attempts to set parameter
name
=
value
. Performs no bounds or error checking on value except to ensure it is a number.
Example
' [VBScript] ' load Dim R2DToo Set R2DToo = Wscript.CreateObject("R2DToo.FrontEnd") ' demonstrate method If R2DToo.SetParam("World Width",128) Then WScript.Echo "Success!" Else WScript.Echo "Failed!" End If ' unload Set R2DToo = nothing
See Also
GetParam
.
[Rik's Office Hours]
[Contact Rik]
Last updated: Fri Apr 30 2004, 1:47pm