Thread: Read Table Record and Write to Array

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Sep 2018
    Posts
    26

    Read Table Record and Write to Array

    I have been tasked with what I hope I explain in a way that is understandable.

    In this data pull, the user will have an option to limit the number of Orders to pull for a given Customer. We will assume 3 orders, but they may have multiple lines per order, we need to include those lines.

    1. Read table record, search array, if customer found, check if order exists and if the order count is 3 or less write array if order limit reached and in the array for customer bypass until new customer is read.
    2. Need to keep count of orders processed are within the order limit of 3.
    3. Repeat for records in the table and search array.


    In the attached file, I have a sample of the Table data that will be read and written to the array.

    I also have the code I would tweak to hopefully make this happen.

    Thank you in advance,
    FrankCLT
    Attached Images Attached Images

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Read and write datatypes to memory array
    By Synaps3 in forum C Programming
    Replies: 4
    Last Post: 10-05-2014, 04:36 PM
  2. Hash Table with Simple record in files
    By infantheartlyje in forum C Programming
    Replies: 77
    Last Post: 10-13-2011, 03:15 AM
  3. Read Each Line of File as Array Record
    By Leo2010 in forum C Programming
    Replies: 3
    Last Post: 02-23-2010, 10:13 AM
  4. How to read and write an char array
    By Menno in forum C Programming
    Replies: 0
    Last Post: 06-17-2007, 06:17 AM
  5. read/write Cstring array to file
    By bonkey in forum Windows Programming
    Replies: 1
    Last Post: 08-18-2002, 09:15 AM

Tags for this Thread