Matching 2 DataSets

  • Thread starter Thread starter Fred
  • Start date Start date
F

Fred

Hi all,

I have a function that have a dataset in argument.
I have an other ds from a particular dataset (dsProduct)

Is there any way to match the two dataset ?

Example :
ds1 : columns are prod_cod_prod_desc, prod_usr
dsProduit : prod_cod, prod_usr
dsProduit = fct(ds1)

Now I can use the right column of my dataset ( no error if column does'nt
exist !)

Is a such function fct or any way exist ?
Thanks,

Jeff
 
Fred:

If I understand correctly, you only want to match selected columns within
datasets. You'll need a mechanism to determine 'equality' and Implementing
an Interface like IComparable might be a good way to do it. You could sort
the columns and then pass them as two arrays..Iterate through the respective
columns and as soon as they don't equal each other, return False.

HTH,

Bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top