How to Use RQBE to Output a Query to an ASCII Text File

ID: Q114313

2.50 2.50a 2.50b 2.60 | 2.00 2.50 2.50a 2.50b 2.60

WINDOWS               | MS-DOS
kbprg

The information in this article applies to:

To direct the ouput of a FoxPro query within the Relational Query By Example (RQBE) tool to an ASCII text file, do the following:

1. Set up your query within the RQBE window.

2. From the Output box, select Report/Label.

3. Select the Options check box.

4. In the RQBE Display Options dialog box, select the Screen Display radio

   button.

5. Under Output Destinations, select the To File check box.

6. Type a name for your file (for example, ASCII.TXT).

7. Choose OK twice, then choose the Do Query button to create your file.

To see the code generated by these settings, choose the See SQL button. You can copy and paste this code into a program. It will look something like:

   SELECT <fields> from <FoxPro table> to FILE <ASCII filename><![CDATA[

REFERENCES

"Interface Guide," version 2.0 (MS-DOS), pages G14-1-17 "User's Guide," version 2.5 (MS-DOS), pages U14-1-21 "User's Guide," version 2.5 (Windows), pages U13-1-22

Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a 2.50b 2.60 KBCategory: kbprg KBSubcategory: FxtoolRqbe

Keywords          : FxtoolRqbe 
Version           : 2.50 2.50a 2.50b 2.60 | 2.00 2.5
Platform          : MS-DOS WINDOWS

Last Reviewed: May 1, 1996