>yes i know that this part of the function does that..the question is..
>is that par included in the code that you helped me with..?
>because thats what is need it to do,,
>
>code countyr rate1 rate2 raten
>0111575 Colombia .13 .28 .26
>
>if a call was made with rate 2 to 011575898998 i neet this to return .28 in my grid..is the function supose to do that......? im sorry to botheryou men...?
>
No; it always returns a field called long_distance.rate if it finds a match; I'm afraid you'll have to take the approach of figuring out what needs to be done and reworking the code yourself.
Dovi, at this point, you need to get someone who knows VFP to do this project, or if you know VFP, you need to read the code and figure out what's there. UT is a great resource for getting help when you're stuck, but it's not a place to find a consultant to do your work for you for free.
>
>
>
>
>
>
>
>>>ed in what part of the function it goes and chooses the rate correctly..
>>>dont i have to put
>>>a for(i) statemnet like this so it brings the actual value...
>>>
>>> if found()
>>> for lN = 3 to fcount()
>>> if upper(field(lN)) = upper(pCode)
>>> lRate = eval(field(lN))
>>> exit
>>>
>>
>>If pCode contains a field name, then EVAL(pCode) would return the value of the field whose name was contained in pCode.