Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

C# Import several cells from 1 column from 1 table in 1 cell in column in another table

Alibek

New Coder
How to write code to import several Cells from 1 Column from 1 Table in 1 Cell in Column in another Table.
I m not a programmist. I need that code to import in one software that has it own language, so i don't need special code for c#, i need basic code how to do it, then i will change the code to my software language.
Look picture to understand better what i need.
Capture.PNG
 
For each row of table 2: model will contain the model value from table 1 if the type value in table 2 is equal to the type value in table 1.

Or a pseudocode version:

Code:
for (row r2 in table 2)
{
  for (row r1 in table 1)
  {
    if (r2.type equals r1.type)
    {
      add r1.model to r2.model
    }
  }
}

Dunno if that would help. Also, you could have different syntax if doing SQL (which I haven't had a lot of practice with so I couldn't make something up off the top of my head)
 

New Threads

Latest posts

Buy us a coffee!

Back
Top Bottom