Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
One function twice?
Message
From
29/09/2004 10:31:06
 
 
To
29/09/2004 10:22:56
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00947006
Message ID:
00947177
Views:
15
>
>In most cases, a printed report where I want multiple invoice totals in a row.
>

That could be one query, that returns a list of those totals.

>If I have unsaved changes, loading the data in a separate cursor won't give the correct results. And if I always reload the current cursor, I've lost those changes. Sergey's suggestion seems... too simple, but I'll give it a try.
>

The function I posted was not for querying the currently loaded invoice, so unsaved changes aren't a problem. Isn't getting totals for a report a different scenario than totalling an invoice that is currently being edited? That's why I'd suggest a SQL SELECT query for reporting purposes.

But based on the information you've given, Sergey's idea will work. I almost went that direction in the function I gave you.
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform