>>>>>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
Thanks, I got it few seconds earlier when I saw Dawa's reply. I think, it's a way to go. Originally I didn't understand you were talking about SUM in Excel.
If it's not broken, fix it until it is.
My Blog