Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Spell out contents of a txt file on a report
Message
 
 
À
04/03/2009 22:52:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01385696
Message ID:
01385699
Vues:
57
>I would like to dump the contents of a text file into a field in a report. Data is in: 'c:\ccsafe\eText.txt' I am hung up on all of the quotes, parenthesis and evals).
>Thanks, Randy

Randy,

local lcVar

lcVar = filetostr('c:\ccsafe\eText.txt')

Use this local variable in your report. The report still should be driven by the cursor. If you just want the text file on your report and nothing else,
create cursor Report_Cursor (mText M)
insert into Report_Cursor values (m.lcVar)
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