Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Resolving undefined variable
Message
De
22/05/2001 16:19:58
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00509828
Message ID:
00510063
Vues:
21
>An alternative to Craig's solution is to "hide" your report from the project manager - i.e. call it using a macro:
>
lcMyReport = 'reportName'
>REPORT FORM &lcMyReport TO...
Just a little reminder.. use
lcMyReport = 'reportName'
REPORT FORM (lcMyReport) TO...
i.e. a name expression, because it is resistant to spaces in the filename. The first form (macro expansion) is not, unless you surround the variable and the & with quotes.

I'm still eradicating this throughout few tons of legacy code, just as well as I replace the usual
lcAlias = alias()
...
select (lcAlias)
Though this would work with macros as well, I prefer
lnWA = select()
...
select (lnWA)
because it doesn't break if there's no alias selected.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform