Stacks data in the input buffer for consumption by the executed command.
object.brData = sData
Parameter | Description |
---|---|
object | An object variable that represents an object in the Applies To list. |
sData | A String containing data for use by the next command executed using the brExecute method. |
Once the brExecute is performed, the data set using a previous call to the brData method is no longer valid. Therefore, for each brExecute, the brData method must be used to set or reset the data, if the executed command requires input data.
Sub Main() Dim oEnv As New clsD3Environment Dim oConn As clsD3Connection Dim oTCLCmd As clsD3TclCommand Dim sResult As String Dim sNumOrders As String Set oConn = oEnv.brOpenConnection("ODBC", "Production") Set oTCLCmd = oConn.brOpenTclCommand("") oTCLCmd.brCommand = "run dm,bp, process.orders" ' Provide appropriate data that is typically ' entered by the user. oTCLCmd.brData"Y" & D3AMChr & "Y" oTCLCmd.brResults = D3ExecuteCapturing oTCLCmd.brExecute Debug.Print oTCLCmd.brCapturing.brCString sResult = oTCLCmd.brCapturing.brExtractStr(1) sNumOrders = oTCLCmd.brCapturing.brExtractStr(2) oConn.brCloseTclCommand oTCLCmd oEnv.brCloseConnection oConn Set oEnv = Nothing End Sub
data