Pass different DataTable to the same function in VB

0

Good morning, I need to know if I can do the following or how to do it, currently I sent in a function DataTable to complete or make a number of pending calculations, but now I need to pass the five or eight tables and I do not want to do one function for each of them, I currently do this:

Public Function mpxporcentaje(ByVal poRow as dsprocesos.tblprocesoRow) as integer

for each tblrow as dsprocesos.tblprocesoRow In dsprocesos.tblproceso
  cuenta = cuenta + 1
next

It works for me but now I need to pass the five or the n tables that I have, how can I do to pass the different tables as a parameter and not specify one, they all have the same field that I need.

Greetings

    
asked by alfredo.avmb 08.09.2017 в 18:14
source

0 answers