私はこの機能を使用しています:
Private Sub Trigger_sales(HIden As Guid)
Dim connection As New SqlConnection(connectionString)
connection.Open()
Dim Command As New SqlCommand()
Command.Connection = connection
Command.CommandType = CommandType.StoredProcedure
Command.CommandText = "[WebSite].[ValidateWebTran]"
Command.Parameters.Add("@UidWenTranGUID", SqlDbType.UniqueIdentifier)
Command.Parameters("@UidWenTranGUID").Value = HIden
Command.Parameters.Add("@sResultDesc", SqlDbType.VarChar)
Command.Parameters("@sResultDesc").Direction = ParameterDirection.Output
Command.ExecuteScalar()
If (String.IsNullOrEmpty(error_process.text = Command.Parameters("@sResultDesc").Value.ToString)) Then
complete_sales(HIden)
End If
End Sub
このエラーが発生します。
String[1]: Size プロパティのサイズが無効な 0 です。
誰かが私が間違っていることを見ることができますか?