Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problema con una vista
Message
From
22/07/2003 12:16:40
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
22/07/2003 11:18:02
Iniaki Lasheras
Ibersoft Esapaña S.L.
Zaragoza, Spain
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00812242
Message ID:
00812417
Views:
11
>En este caso en concreto no necesito filtrar con Where, ya que utilizo
>
>REPORT FORM pedido FOR idpedido = thisform.txtid.Value preview,
>
>¿Es mejor utilizar WHERE?.

Yo siempre preparo un solo cursor con todos los datos antes de dar el informe. Esto puede incluir: juntar datos de varias tablas en un solo cursor; juntar grupos de registros (para obtener totales); ordenar los resultados; filtrar.

Este procedimiento permite usar un mismo informe de una manera muy flexible. Preparas el cursor de acuerdo a las opciones que especifica el usuario en una pantalla. La misma orden del informe es invariable, por ejemplo, REPORT FORM (tcReportName) PREVIEW (o TO PRINTER PROMPT).

Así, puedes tener una función genérica para manejar tus informes, en vez de repetir las mismas órdenes para cada informe.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform