Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report or cursor problem OR a VFP bug ?
Message
 
 
À
25/06/2004 10:40:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00917219
Message ID:
00917357
Vues:
10
Kurt,

This sort of problem also occurs if you have specified the alias in the report expressions and you run the report with some other work area selected.
create cursor RealReport ...
* report fields contain RealReport.TheField
report form TheReport ...

create cursor x1 ( i1 i )
for i = 1 to 5
   insert into x1 values ( i )
endfor

report form TheReport ...
Now you see the same row output 5 times because the x1 cursor contains 5 rows.

One way to avoid this sort of problem is to not use the table alias in the report fields. Just use the field names.

>Via the command 'label from.... preview' i print the list of products. The first time everything is ok. In the preview and on paper i have 2 times product a with the prices and b and d each one time. Without leaving my form and doing nothing else but printing via the same code the same list then a get in the preview the right example. When i continue and chose to print the list i only get one time product 'a'.
>
>And this each time i want to print the second time the same list.
>
>So : preview is always ok on paper first time ok second time he only print each value 1 time.
>
>can somebody help me ?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform