¿Cómo devuelvo un objeto command?
Publicado por Toni (3 intervenciones) el 19/03/2004 15:52:50
Tengo esta función:
Function comando(x As String) As Command
Dim ComandLoad As New Command
With ComandLoad
.CommandType = adCmdText
.CommandText = x
.ActiveConnection = Conexion()
End With
End Function
Quiero que devuelva el objeto ComandLoad. ¿Alguien sabe como hacerlo?
Function comando(x As String) As Command
Dim ComandLoad As New Command
With ComandLoad
.CommandType = adCmdText
.CommandText = x
.ActiveConnection = Conexion()
End With
End Function
Quiero que devuelva el objeto ComandLoad. ¿Alguien sabe como hacerlo?
Valora esta pregunta
0