Public Function CargarTablaCamposCondicionOrden(ByVal Tabla As String, ByVal Campos As String, ByVal Condicion As String, ByVal Orden As String, ByVal Da As SqlClient.SqlDataAdapter, ByVal Ds As DataSet)
Dim oCommand As SqlClient.SqlCommand = New SqlClient.SqlCommand()
oCommand.CommandText = "[PA_DevolverTablaCamposCondicionOrden]"
oCommand.Connection = Conexion
oCommand.CommandTimeout = 0
oCommand.CommandType = CommandType.StoredProcedure
oCommand.Parameters.Add("@Tabla", SqlDbType.Char, 50).Value = Trim(Tabla)
oCommand.Parameters.Add("@Campos", SqlDbType.Char, 300).Value = Trim(Campos)
oCommand.Parameters.Add("@Condicion", SqlDbType.Char, 200).Value = Trim(Condicion)
oCommand.Parameters.Add("@Orden", SqlDbType.Char, 100).Value = Trim(Orden)
Da = New SqlClient.SqlDataAdapter(oCommand)
Conexion.Open()
Da.Fill(Ds, Tabla)
Conexion.Close()
End Function