dreamdelerium
Registered User.
- Local time
- Yesterday, 19:12
- Joined
- Aug 24, 2007
- Messages
- 88
heres the scenario: i have a table with about 100 records. each record has 50 fields. i need to create a function (or a couple of functions) that will go through every record and compare the field in column 2. if the there is more than one that has the same value i want to traverse the rest of the columns to compare there values (ie between records that are equall in column 2, compare fields in column 3 do something, then move to column 4 do something... column 50 do something).
eventually i want it to see if the values in each column arent equal between records. if not, i want to make a composite of the multile records, based on a list of rules (ie, if across all records in column 3 the value = 1 then make no changes, if one of the fields does not = 1, then change to two...). but first i just want to get the first part working. anyone have any ideas?
i was thinking of using the getrows function to load the table into an array. im just having trouble moving through the records and doing the comparisons
thanks
eventually i want it to see if the values in each column arent equal between records. if not, i want to make a composite of the multile records, based on a list of rules (ie, if across all records in column 3 the value = 1 then make no changes, if one of the fields does not = 1, then change to two...). but first i just want to get the first part working. anyone have any ideas?
i was thinking of using the getrows function to load the table into an array. im just having trouble moving through the records and doing the comparisons
thanks