last day (15 days later) » 

2:52 PM
0
Q: How to compare DataTables created during runtime?

Kuba DoI'm new to programming, and everything what i done until now was research and implementing to fit my needs... Currently I'm creating dataTable like this : private void GridOfBitmaps() { Bitmap OriginBitmap = new Bitmap(pictureBox1.Image); DataTable LightnessTable...

 
stackoverflow.com/questions/9022118/… You need to access each cell and compare it.
 
I think i wrongly asked... I will edit question
 
It'll be better if you put two sample datatable data and describe what output you want.
 
Thanks Luis, i just updated. Its about storing dataTables for later use. I dont know how to do it without database
 
Do you want to pass your LightnessTable out? Is there anything preventing you from changing void GridOfBitmaps() to DataTable GridOfBitmaps()? You may get this datatable after function is call. Eg DataTable first = GridOfBitmaps().
 
2:52 PM
Im not sure how i will use it, let say i will call this function 2 times, how to compare those datatables later ? Second click will overwrite first one ?
 
Is your question "How to save two datatable results from a function call"? If yes, there are many ways. I'll write an answer to it.
 
Hello !
 
Hi
Is my assumption correct?
All you need is saving your results from the function?
 
getting out DataTable is good idea. But im not sure how i will refer to those datatables
 
Do you have a form to call that method?
 
2:54 PM
im using WInForm
 
At least on click event fired method like button1_Click.
 
yes yes
 
And you call GridOfBitmaps in it?
 
yes
 
Ok, you need to know the knowledge of member variables.
I'll write an answer in 10 minutes.
 
2:55 PM
this give me that DataTable, next click will give me next DataTable, and with those 2 i want to create 3rd one with comparision result
Thank You very much Louis
 
:)
I post the answer, feel free to ask in comment
 

last day (15 days later) »