I need to keep track of several numeric values for a variety of different related string values. Under normal conditions, a cross tab would probably work. For a variety of reasons, cross tab isn't the answer.
Essentially, I'm keeping track of things like Original Estimate, JTD cost etc. for a list of cost codes. When reading a record, I'd like to check Array A(which contains the cost codes) to see if the cost code exists and in what position. I would then increment the corresponding element in ArrayB(which would contain Original Estimate) and ArrayC(which would contain JTD Cost)
My problem is that I can't find the operator that tells me which Array element/position a given value occupies. The IN operator will tell me if the value exists, but I need to know where(what position) it is in. Am I missing something here? Is there such an operator? I'm using Crystal Version 8, Developer Edition
Essentially, I'm keeping track of things like Original Estimate, JTD cost etc. for a list of cost codes. When reading a record, I'd like to check Array A(which contains the cost codes) to see if the cost code exists and in what position. I would then increment the corresponding element in ArrayB(which would contain Original Estimate) and ArrayC(which would contain JTD Cost)
My problem is that I can't find the operator that tells me which Array element/position a given value occupies. The IN operator will tell me if the value exists, but I need to know where(what position) it is in. Am I missing something here? Is there such an operator? I'm using Crystal Version 8, Developer Edition