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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report stored in memo fields of another dbf

Status
Not open for further replies.

newfoxpro3

Programmer
Jul 22, 2010
1
CA
Hello,

I have taken over a program where the previous developer has stored reports(FRX, FRT) inside 2 seperate MEMO fields of another dbf table. I need to modify the report and I am unsure how to extract them?

 
Try this:

1. USE the table in question.

2. Navigate to the record containing the report. (For example, use BROWSE.)

3. Execute this:

STRTOFILE(Memo1, "MyReport.FRX")
STRTOFILE(Memo2, "MyReport.FRT")

where Memo1 and Memo2 are the names of the fields holding the FRX and FRT respectively.

4. You now have a report file named MyReport. Go ahead and modify it, and save it when finished.

5. To get the report back into the memo fields, nagivate again to the record in question, and do this:

REPLACE Memo1 WITH FILETOSTR("MyReport.FRX")
REPLACE Memo2 WITH FILETOSTR("MyReport.FRT")

I think that should do the trick.

Mike



__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro tips, advice, training, consultancy
Custom software for your business
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top