Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding variables by hacking
Message
 
 
À
13/09/2009 18:05:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01423992
Message ID:
01423993
Vues:
79
>Hi All:
>
>What is the easiest way to add a bunch of variables to a report by hacking the FRX?
>
>I have ten variables, all beginning with c_. I want add another 10, prepending them with v_ and have the totalling break on a different group.
>
>I'm lazy to do this 'by hand'.
>
>Thanks,
>
>Yossi

Yossi,

Make a copy of the current report, browse the report as a table, find a record with one of the c_ variables, and then try
scatter memvar memo
m.Expr = strtran(m.Expr, "c_","v_")
m.Uniqueid = SYS(2015)
insert from memvar
If the report will work after that, just repeat the same process for other variables.

See also http://weblogs.foxite.com/cesarchalom/archive/2006/05/16/1531.aspx
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform