Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Spell out contents of a txt file on a report
Message
 
 
To
04/03/2009 22:52:23
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01385696
Message ID:
01385699
Views:
58
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform