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)
Top of page

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.
Top of page

Return Value

Returns 1 on success, 0 on fail. Top of page

Remarks

Attempts to set parameter name=value. Performs no bounds or error checking on value except to ensure it is a number.
Top of page

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
Top of page

See Also

GetParam.
Top of page
[Rik's Office Hours] [Contact Rik]
Last updated: Fri Apr 30 2004, 1:47pm