Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

txt file into frx

Status
Not open for further replies.

hamirca

Programmer
Apr 30, 2006
7
PK
Dear Friends

Is it possible to open a text file in frx ? if yes how ?
 

No.

.FRX actually is a .DBF of a particular structure, with renamed extension.

What's in your text file, anyway?

Layout for a report? Then you will need to recreate in a report builder.

If, however, it's a data set for a report (in a delimited/fixed width format), you can create a table or cursor of that structure, and append your .TXT data to it, with apprpopriate TYPE clause. Then you can use it in existing report or create a new one, manually or with a wizard.
 
Thanks Stella, I will convert txt file in dbf which will help me to build it frx.

Once again thanks for the support.
 

So your .TXT file does contain data?

Then, of course, sending it to .DBF is what you should do.
 
Hamirca,

Not sure if this is what you are looking for, but it sounds as if you are trying to include text stored in a file in a report. You can do this by creating a text box on your report and then setting the control source to a function like this

FUNCTION GetTextFromTextFile
LPARAMETERS lcFileName
IF FILE(lcFilename)
RETURN FILETOSTR(lcFilename)
ELSE
RETURN []
ENDIF
ENDFUNC

Ken
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top