>>>>Thanks a lot, Nadia. I'll have a look at that in detail presently. Just one thing: I'm still on VFP7 and thus don't have the Try ... Catch facility (and not sure what it's all about, for that matter).
>>>>
>>>>Terry
>>>
>>>What about your second question? Instead of TRY/CATCH you may use your general Error Handler.
>>
>>What
about my second question?
>>
>>So try ... catch is about error trapping?
>
>In your original message you asked two questions, but I don't understand the second and therefore have to ask you the third time to elaborate <g>
Oh, you just said "What about your second question?" which didn't indicate anything to me :-)
OK, the thing is, I have a cursor of classes, within bus routes, for different bus operators, within a countywide scheme.
My users want a s/s with totals for bus classes/route/operator/overall, route/operator/overall, and operator/overall.
I jig the cursor into whichever format is requested, putting in the totals for each category.
Now they want it so that the s/s/ approp. SUM() function is put in the cursor, in place of the totals, so that, if they should add/delete row(s) the totals will be taken care of by Excel, instead of having to alter them manually.
>
>Yes, you got it. Try/catch is a nice error handler mechanism. You have it in other programming languages as well, C++, for example.
Thank you
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.