Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Text file onto a report
Message
From
24/02/2000 15:27:19
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00337009
Message ID:
00337038
Views:
25
>>Timothy, you can use FILETOSTR() function in VFP 6 to get text file into variable, then you can use the variable in report.
>>
>Nick, I went to do "help FILETOSTR" and there was no help on how to use it

Well, help filetostr gives me this:

FILETOSTR( ) Function
See Also

Returns the contents of a file as a character string.

Syntax

FILETOSTR(cFileName)

Returns

Character

Arguments

cFileName

Specifies the name of the file whose contents are returned as a character string. If the file is in a directory other than the current default directory, include a path with the file name.

Remarks

Note that the size of the character string FILETOSTR( ) returns can be very large. The amount of available memory or disk space determines if you can store the character string to a memory variable, array element, or memo field. Also, character fields in Visual FoxPro are limited to 254 characters. See Visual FoxPro System Capacities for more information about limitations on character type data.


--------------------------------------------------------------------------------
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform