home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / FOXP-DOS.206 / PSSQA.TXT < prev    next >
Text File  |  1994-03-10  |  30KB  |  864 lines

  1.                       PSSQA.TXT
  2. **********************************************************
  3.         Answers to Commonly Asked Question About
  4.  
  5.     Microsoft(R) FoxPro(R) for MS-DOS(R) Version 2.6
  6.  
  7.     (C)1994 Microsoft Corporation. All Rights Reserved.
  8.  
  9. **********************************************************
  10. ========
  11. CONTENTS
  12. ========
  13.  
  14. Part   Description
  15. ----   -----------
  16. 1      Network Issues
  17. 2      Converting from FoxPro 2.0 to FoxPro 2.6 for MS-DOS
  18. 3      Printing Issues
  19. 4      Screens
  20. 5      Importing Data
  21. 6      BROWSE Command
  22. 7      Creating Applications
  23.  
  24. ----------------------------------------------------------
  25.  
  26. ======================
  27. Part 1: Network Issues
  28. ======================
  29.  
  30. Overview of Questions
  31. ---------------------
  32.  
  33. 1   When a second user loads Microsoft FoxPro for MS-DOS
  34.     on my network, the user receives the error message 
  35.     "File in use by another." How can I correct this
  36.     problem?
  37. 2   In a network environment, where does FoxPro create
  38.     temporary files?
  39. 3   I get "File Access Denied" Error Message When Writing
  40.     to File.
  41.     How can I correct this problem?
  42. 4   How do I resolve FoxPro "Sharing Violation Reading 
  43.     Drive" Error?
  44. ----------------------------------------------------------
  45.  
  46. Question 1
  47.  
  48. When a second user loads Microsoft FoxPro for MS-DOS on
  49. my network, the user receives the error message "File in
  50. use by another." How can I correct this problem?
  51.  
  52. Answer 1
  53.  
  54. If you are on a peer-to-peer network other than Windows
  55. for Workgroups, you must first load MS-DOS SHARE and then
  56. verify that the FoxPro files are marked as read only.
  57.  
  58. FoxPro uses a resource file called FOXUSER to store
  59. information about windows, color sets, and other FoxPro
  60. objects. The FOXUSER database can be shared only if the
  61. file is marked read only. If you receive this error message
  62. when you try to open a database file, make sure that all
  63. users have the SET EXCLUSIVE setting OFF.
  64. ----------------------------------------------------------
  65.  
  66. Question 2
  67.  
  68. In a network environment, where does FoxPro create
  69. temporary files?
  70.  
  71. Answer 2
  72.  
  73. FoxPro creates temporary files in the current working
  74. directory unless you specifically designate an alternate
  75. location by including one or more of the EDITWORK, SORTWORK,
  76. PROGWORK and/or TMPFILES statements in the CONFIG.FP file.
  77.  
  78. If local workstations have sizable hard drives with plenty
  79. of free space or have large amounts of RAM, you can improve
  80. performance in the multi-user environment by placing FoxPro
  81. temporary work files on the local drive or on a RAM drive.
  82. Redirecting these files to a local drive or a RAM drive
  83. provides additional speed by reducing the need to access
  84. the network drive.
  85.  
  86. On small networks that have older workstations with slow
  87. hard drives, you might experience better performance by 
  88. leaving FoxPro temporary files on the file server.  When
  89. in doubt, direct temporary files to the local hard drive.
  90. ----------------------------------------------------------
  91.  
  92. Question 3
  93.  
  94. I get "File Access Denied" Error Message When Writing to 
  95. File. How can I correct this problem?
  96.  
  97. Answer 3
  98.  
  99. The steps you must use to resolve this problem depends on  
  100. the network product you are using.
  101.  
  102. For a LANtastic network, do the following:
  103.  
  104. 1. Check the files and locks on the SHARE command in the 
  105.    AUTOEXEC.BAT file. The following are the recommended 
  106.    settings:
  107.  
  108.       share /f:5120 /l:500
  109.  
  110. 2. Verify that the .EXE, .RSC, and .OVL files are marked 
  111.    as read-only. If necessary, change the security using 
  112.    the MS-DOS ATTRIB command (for example, ATTRIB +R 
  113.    <filename>).
  114.  
  115. 3. Ensure that the CONFIG.FP file on the server redirects 
  116.    the OVERLAY= to a directory other than the directory 
  117.    containing the FOXPRO.EXE file.
  118.  
  119. For a Novell network, do the following:
  120.  
  121. 1. Check the user's privileges. 
  122.  
  123. 2. Have the user log in as a supervisor and repeat the 
  124.    operation.
  125.  
  126. 3. Ensure that the .EXE, .ESO and .ESL files are marked as 
  127.    read-only.  If necessary, change the security using the 
  128.    MS-DOS ATTRIB command (ATTRIB +R <filename>).
  129.  
  130. LANtastic is manufactured by Artisoft, Inc. and Novell 
  131. products by Novell, Inc., both vendors independent of 
  132. Microsoft; we make no warranty, implied or otherwise, 
  133. regarding these products' performance or reliability.
  134. ----------------------------------------------------------
  135.  
  136. Question 4 
  137.  
  138. How do I resolve FoxPro "Sharing Violation Reading Drive" 
  139. Error?
  140.  
  141. Answer 4
  142.  
  143. The following are six troubleshooting steps for this error:
  144.  
  145.   - Verify that each user has a FOXUSER.DBF file.
  146.  
  147.   - Verify that the CONFIG.FP file on the server includes 
  148.     the EXCLUSIVE=OFF statement. If EXCLUSIVE=OFF is used, 
  149.     it is possible to share database files.
  150.  
  151.  - Verify that the CONFIG.FP file on the server includes the
  152.    RESOURCE=OFF statement, or that each user's FOXUSER.DBF 
  153.    and FOXUSER.FPT files are marked as read-only.
  154.  
  155.   - If you are using the LAN version of FoxPro 2.0 , verify
  156.     that the FOXPROL.EXE, FOXPROLX.EXE, and FOXR.EXE files 
  157.     are marked as read-only. If you are using FoxPro 2.5 for
  158.     MS-DOS, verify that the FOXPRO.EXE, FOXPROX.EXE, and 
  159.     FOXR.EXE files are marked as read-only.
  160.  
  161.  - If you use the Distribution Kit to create a standalone 
  162.    application, verify that the .EXE files are marked as 
  163.    read-only.
  164.  
  165.  - If you create compact executable files, mark the .ESL and 
  166.    .ESO files as read-only.
  167.  
  168.  - In some cases, the SHARE utility must be loaded on the 
  169.    server and on each workstation. Specify the /F and /L 
  170.    parameters as follows:
  171.  
  172.       SHARE /F:5120 /L:500
  173. ----------------------------------------------------------
  174.  
  175.  
  176. ===========================================================
  177. Part 2: Converting from FoxPro 2.0 to FoxPro 2.6 for MS-DOS
  178. ===========================================================
  179.  
  180. Overview of Questions
  181. ---------------------
  182.  
  183. 1   Are my existing FoxPro 2.0 screens and reports
  184.     compatible with FoxPro 2.6?
  185. 2   Can I use my existing library files created with the
  186.     FoxPro 2.0 Library Construction Kit in FoxPro 2.6?
  187. 3   Are my existing programs compiled under FoxPro 2.0
  188.     compatible with FoxPro 2.6?
  189. ----------------------------------------------------------
  190.  
  191. Question 1
  192.  
  193. Are my existing FoxPro 2.0 screens and reports compatible
  194. with FoxPro 2.6?
  195.  
  196. Answer 1
  197.  
  198. The structures of the databases created by the power tools
  199. have changed in FoxPro 2.6.  When you first open screen and
  200. report files created in FoxPro 2.0, FoxPro 2.6 ask if you 
  201. want to convert them to FoxPro 2.6 format.  This conversion
  202. is a one-way process -- files that have been converted to
  203. 2.6 formats may no longer be opened in 2.0.  You may want
  204. to make backups before converting.  For more information
  205. about specific FoxPro 2.6 file formats, see "Tables" in
  206. the Update manual.
  207. ----------------------------------------------------------
  208.  
  209. Question 2
  210.  
  211. Can I use my existing library files created with the
  212. FoxPro 2.0 Library Construction Kit in FoxPro 2.6?
  213.  
  214. Answer 2
  215.  
  216. Library files created with the FoxPro 2.0 Library
  217. Construction Kit must be relinked before they can be used
  218. in FoxPro 2.6.  
  219.  
  220. The directory FOXPRO25\GOODIES\LCKUPDAT contains files
  221. that allow you to update PLBs built using the FoxPro 2.0
  222. Library Construction Kit for use with FoxPro 2.6 for
  223. MS-DOS.  If you obtained your PLBs from another source,
  224. such as a software supplier or online service, contact
  225. that source for updated libraries that work with
  226. FoxPro 2.6.  To use these files, follow the directions in
  227. the LCKUPDAT.TXT file located in the 
  228. FOXPRO25\GOODIES\LCKUPDAT directory.
  229. ----------------------------------------------------------
  230.  
  231. Question 3
  232.  
  233. Are my existing programs compiled under FoxPro 2.0 
  234. compatible with FoxPro 2.6?
  235.  
  236. Answer 3
  237.  
  238. Programs compiled under FoxPro 2.0, such as .APP and .FXP
  239. files, are not compatible with FoxPro 2.6.  To run such
  240. applications or programs in FoxPro 2.6, you must rebuild
  241. or recompile them.  For more information about rebuilding
  242. FoxPro 2.0 applications, see "Using Files From Other
  243. Platforms" in the Update manual.
  244. ----------------------------------------------------------
  245. =======================
  246. Part 3: Printing Issues
  247. =======================
  248.  
  249. Overview of Questions
  250. ---------------------
  251.  
  252. 1   When I try to print boxes, ASCII characters are printed
  253.     instead of boxes.  How can I correct this problem?
  254. 2   I'm using the Relational Query By Example (RQBE)
  255.     system to send data to a report. The data in the report
  256.     is incorrect; the report prints the same record over
  257.     and over. How can I correct this problem?
  258. 3   Why can't I select the printer driver check box in the
  259.     Printer Setup Dialog box?
  260. 4   I'm using a Novell network. I can print by using the
  261.     Novell CAPTURE command, but the SET PRINTER TO \\SPOOLER
  262.     command doesn't work. How can I correct this problem?
  263. 5   I can't make the printer drivers work in an executable
  264.     file. How can I correct this problem?
  265. 6   How do I start a Print Job from a Page Other Than Page 1?
  266. 7   I am having problems printing  Labels on a Laser Printer
  267.     without a printer driver.
  268.     How can I correct this problem?
  269. 8   I get the following error "Cannot Write to Read-Only File"
  270.     When Printing Report. How can I correct this problem?
  271. 9   I get an extra blank line when printing labels.
  272.     How can I correct this problem?
  273. 10  I have NewPage and ResetPage enabled in my data grouping
  274.     but my page numbering is not reset to 1.
  275.     How can I correct this problem?
  276. 11  I get the following error "File ["<File>"] Does Not Exist" 
  277.     printing on LAN Manager.  How do I correct this problem?
  278. ----------------------------------------------------------
  279.  
  280. Question 1
  281.  
  282. When I try to print boxes, ASCII characters are printed
  283. instead of boxes. How can I correct this problem?
  284.  
  285. Answer 1
  286.  
  287. If you are using an HP laserjet printer, the default
  288. character set does not include line drawing characters.
  289. You can change the default character set by using the 
  290. controls on the front panel of the printer. You will
  291. want to set your default to the PC-8 character set.
  292.  
  293. If you are not using an HP laserjet printer and are
  294. using printer drivers, in the Printer Setup dialog,
  295. specify a printer setup appropriate for your printer.
  296. If you are already using a printer driver, modify the
  297. P_CODES database in order to send the proper code for
  298. your printer, and rebuild the GENPD.APP file. If you
  299. aren't using a printer driver, send the proper escape
  300. codes to the printer before you print using the
  301. ??? command.
  302. ----------------------------------------------------------
  303.  
  304. Question 2
  305.  
  306. I'm using the Relational Query By Example (RQBE) system
  307. to send data to a report. The data in the report is
  308. incorrect; the report prints the same record over and over.
  309. How can I correct this problem?
  310.  
  311. Answer 2
  312.  
  313. When you created the report, you used alias names in your
  314. field definitions. To correct the report, simply remove the
  315. alias names. For example, a field containing CUSTOMER.NAME
  316. should be modified to contain only NAME.
  317. ----------------------------------------------------------
  318.  
  319. Question 3
  320.  
  321. Why can't I select the printer driver check box in the
  322. Printer Setup dialog box?
  323.  
  324. Answer 3
  325.  
  326. This problem occurs if you are missing the GENPD.APP file,
  327. if the _GENPD memory variable is set incorrectly, if the
  328. resource file is turned off, or if the FOXUSER file is
  329. missing, damaged, or marked as read only.
  330. ----------------------------------------------------------
  331.  
  332. Question 4
  333.  
  334. I'm using a Novell network. I can print by using the
  335. Novell CAPTURE command, but the SET PRINTER TO \\SPOOLER
  336. command doesn't work. How can I correct this problem?
  337.  
  338. Answer 4
  339.  
  340. If you are receiving the error message "Printer not ready,"
  341. make sure that there are no spaces before or after the
  342. \\SPOOLER clauses of SET PRINTER. If the printer information
  343. doesn't print until you exit FoxPro, you must issue the
  344. SET PRINT TO command in order to release the print spooler.
  345. ----------------------------------------------------------
  346.  
  347. Question 5
  348.  
  349. I can't make the printer drivers work in an executable
  350. file. How can I correct this problem?
  351.  
  352. Answer 5
  353.  
  354. Open the project to make sure that the GENPD.APP file is
  355. included in the project as an application. If it isn't
  356. included, add GENPD.APP to the project as an application.
  357.  
  358. To add GENPD.APP as an application, choose the Add push
  359. button. In the dialog that appears, choose
  360. Application from the Type popup, select GENPD.APP and then
  361. choose the Add push button.
  362.  
  363. Note: GENPD.APP is automatically marked as an excluded
  364. project element.
  365.  
  366. Rebuild the project and your executable file. Make sure
  367. that you distribute the GENPD.APP, FOXUSER.DBF,
  368. FOXUSER.FPT, and FOXSWAP.COM files with your executable
  369. file.
  370. ----------------------------------------------------------
  371.  
  372. Question 6
  373.  
  374. How do I start a Print Job from a Page Other Than Page 1?
  375.  
  376. Answer 6
  377.  
  378. To start a print job at a location other than page 1, set 
  379. _PBPAGE to the number of the page at which printing should 
  380. start and create a program that uses the 
  381. PRINTJOB...ENDPRINTJOB commands.
  382.  
  383. Using the _PBPAGE variable to specify the page number where 
  384. a print job starts does not work outside of 
  385. PRINTJOB...ENDPRINTJOB.
  386.  
  387. For example, suppose your printer jammed on page 75 of a 
  388. 100-page report and all output from page 75 through 100 was 
  389. lost. The code to re-create the last 25 pages is as follows:
  390.  
  391.    _PBPAGE=75
  392.    PRINTJOB
  393.    REPORT FORM C:\FOXPRO2\test.FRX ;
  394.       ENVIRONMENT PDSETUP TO PRINT
  395.    ENDPRINTJOB
  396.  
  397. Or, if you just wanted to only print page 75, then set 
  398. "_PBPAGE=75" and "_PEPAGE=75" in the previous example.
  399. ----------------------------------------------------------
  400.  
  401. Question 7
  402.  
  403. I am having problems printing  Labels on a Laser Printer 
  404. without a printer driver.
  405. How can I correct this problem?
  406.  
  407. Answer 7
  408.  
  409. Printing labels to a Hewlett-Packard (HP) laser printer 
  410. without a printer driver requires that certain escape codes 
  411. be sent to the printer before the command to print the labels.
  412.  
  413. MORE INFORMATION
  414. ================
  415.  
  416. Avery 5161 or 5261 labels measure 1-by-4 inches. One page 
  417. of labels has two columns of ten labels each. To print this 
  418. label type, execute code such as the following:
  419.  
  420.    SET PDSETUP TO
  421.    SET DEVICE TO PRINTER
  422.    ??? CHR(27)+'E'        && Reset
  423.    ??? CHR(27)+'&l8.00C'  && Line height 8/48" (LPI 6)
  424.    ??? CHR(27)+'&l3E'     && Top margin 3 lines
  425.    ??? CHR(27)+'&l56P'    && Page length 60 lines
  426.    SET DEVICE TO SCREEN
  427.    LABEL FORM <labelname> TO PRINTER
  428.    SET PRINTER TO
  429.    SET DEVICE TO SCREEN
  430.  
  431.    NOTE: The escape code lines that contain an ampersand 
  432.    (&) use a lowercase "L", not a number 1.
  433.  
  434. In the label generator, use the following settings:
  435.  
  436.    Margin - 3
  437.    Width  - 34
  438.    Number across - 2
  439.    Height - 6
  440.    Lines between - 0
  441.  
  442. The above settings are only an example and may need to be 
  443. modified for specific labels, printers, and applications. 
  444. For exact escape code sequences, consult your printer's 
  445. manual.
  446. ----------------------------------------------------------
  447.  
  448. Question 8
  449.  
  450. I get the following error "Cannot Write to Read-Only File"
  451.  When Printing Report. How can I correct this problem?
  452.  
  453. Answer 8
  454.  
  455. Given the following circumstances, the error message "Cannot
  456. Write to a Read-Only File" will occur when you try to print 
  457. a report from within an application (.APP) or an executable 
  458. (.EXE) program:
  459.  
  460.  - The resource file is included in the project.
  461.  
  462.  - The resource is set to the included filename.
  463.  
  464.  - The REPORT FORM <name> PDSETUP TO PRINT or 
  465.    LABEL FORM <name> PDSETUP TO
  466.    PRINT command is issued.
  467.  
  468. There are two ways to avoid this problem:
  469.  
  470.  - Remove PDSETUP from the command.
  471.  
  472.    -or-
  473.  
  474.  - Mark the resource file as excluded and ship it along with 
  475.    the .APP or .EXE file.
  476. ----------------------------------------------------------
  477.  
  478. Question 9
  479.  
  480. I get an extra blank line when printing labels.
  481. How can I correct this problem?
  482.  
  483. Answer 9
  484.  
  485. This behavior existed in dBASE III and FoxBASE. It was 
  486. changed in FoxPro version 1.02. However, to maintain 
  487. compatibility with the large installed base of Xbase 
  488. applications, a design decision was made to revert to the
  489. original behavior.
  490.  
  491. To work around this problem, print the label form to a file, 
  492. open the file with low-level file functions, remove the 
  493. carriage return/linefeed (CR/LF) characters and send the 
  494. file to the printer using the MS-DOS COPY command.
  495. For example:
  496.  
  497.    *--Set the number of lines printed per page and print to a file.
  498.    _PLENGTH=56
  499.    LABEL FORM <form name> ENVIRONMENT PDSETUP TO FILE temp.txt
  500.  
  501.    *--Open file and replace the CR/LF pair with null characters.
  502.    filehand=FOPEN('temp.txt',2)
  503.    =FGETS(filehand)
  504.    =FSEEK(filehand,-2,1)
  505.    =FWRITE(filehand,chr(0)+chr(0))
  506.    =FCLOSE(filehand)
  507.  
  508.    *--Copy the file to printer and prevent the appearance of the
  509.    *--MS-DOS screen.
  510.    HIDE WINDOW SAVE ALL
  511.    RUN COPY temp.txt LPT1 > NUL
  512.    SHOW WINDOW ALL
  513. ----------------------------------------------------------
  514.  
  515. Question 10
  516.  
  517. I have NewPage and ResetPage enabled in my data grouping but
  518. my page numbering is not reset to 1.
  519. How can I correct this problem?
  520.  
  521. Answer 10
  522.  
  523. The report has a Bottom Margin setting greater than 0 (zero).
  524.  
  525. Set Bottom Margin to 0 and add the necessary lines to the Page
  526. Footer band. For example, if Bottom Margin is set to 2, reset 
  527. it to 0 and add two lines to the Page Footer band.
  528. ----------------------------------------------------------
  529.  
  530. Question 11
  531.  
  532. I get the following error "File ["<File>"] Does Not Exist" 
  533. printing on LAN Manager.  How do I correct this problem?
  534.  
  535. Answer 11
  536.  
  537. When the program attempts to open a file, it looks in a
  538. particular directory. If it does not find the file there it 
  539. tries other directories until the file is found. When LAN 
  540. Manager's "chartime" timer (which defaults to 250 milliseconds) 
  541. expires, it sends a spool close message to the workstation, 
  542. and if the program is in the middle of a search for the
  543. next file to open, the program exits incorrectly with the 
  544. error mentioned above.
  545.  
  546. If the chartime parameter in the LANMAN.INI file for the 
  547. workstation is set to a sufficiently high value, the program 
  548. will not be interrupted by the spool close message and will 
  549. work correctly.
  550.  
  551. In LAN Manager version 2.1, the chartime parameter controls 
  552. the amount of time the spooler waits for additional print 
  553. data before closing the current spool file and printing it. 
  554. In earlier versions of LAN Manager, this parameter controls 
  555. the amount of time to wait for pipe data or comm queue
  556. data.
  557.  
  558. For more information about the chartime parameter and the 
  559. LANMAN.INI file, refer to the LAN Manager documentation or 
  560. contact Microsoft LAN Manager Product Support Services.
  561.  
  562. Also, see the "Microsoft LAN Manager Administrator's 
  563. Reference," version 2.1, page 225
  564. ----------------------------------------------------------
  565.  
  566. ===============
  567. Part 4: Screens
  568. ===============
  569.  
  570. Overview of Questions
  571. ---------------------
  572.  
  573. 1   Every time I try to generate a specific screen, I have
  574.     to add my supporting screens to the screen set. How
  575.     can I avoid this problem?
  576. 2   When I create a screen set with more than one window,
  577.     how do I move the cursor from one window to the next?
  578. 3 How do I coordinate Browse Windows with Screens?
  579. 4 How to Page Through a Format File That Contains a READ?
  580. 5 The Cycle Command does not work for desktop screens. 
  581. How can I correct this?
  582. ----------------------------------------------------------
  583.  
  584. Question 1
  585.  
  586. Every time I try to generate a specific screen, I have to
  587. add my supporting screens to the screen set. How can I
  588. avoid this problem?
  589.  
  590. Answer 1
  591.  
  592. To save these options, you must create a project and
  593. include the screens as a screen set.
  594. ----------------------------------------------------------
  595.  
  596. Question 2
  597.  
  598. When I create a screen set with more than one window, how
  599. do I move the cursor from one window to the next?
  600.  
  601. Answer 2
  602.  
  603. If all the windows in your screen set are controlled
  604. with one READ command, use the Page Up key, the Page Down
  605. key, or modify the value of the _CUROBJ system memory
  606. variable to cycle through the windows of your screen set.
  607. If any one of the windows in your screen set is not
  608. controlled by the READ command, such as a Browse window,
  609. then you must press Ctrl+F1 to cycle through the screen set.
  610. ----------------------------------------------------------
  611.  
  612. Question 3
  613.  
  614. How do I coordinate Browse Windows with Screens?
  615.  
  616. Answer 3
  617.  
  618. Page D2-96 of the FoxPro for MS-DOS "Developers Guide" give 
  619. samples for coordinating Browse windows with screens but omits 
  620. the SAVE clause in the example. If the optional BROWSE 
  621. parameter SAVE is omitted, the Browse window will close
  622. as soon as any other object is clicked.
  623.  
  624. The code example should be changed to read as follows:
  625.  
  626.    IF NOT WVISIBLE("Client List")
  627.       BROWSE NORMAL NOWAIT NODELETE LAST TITLE "Client List" ;
  628.          NOAPPEND NOMENU SAVE FIELDS company ;
  629.          WHEN showgets()
  630.    ENDIF
  631.  
  632.    IF NOT WVISIBLE("Account Details")
  633.       SELECT details
  634.          BROWSE NORMAL NOWAIT NODELETE LAST TITLE "Client List" ;
  635.             NOAPPEND NOMENU SAVE  ;
  636.             FIELDS ;
  637.             Trans_type:10, ;
  638.             Trans_date:10, ;
  639.             Amt:7,Service
  640.       SELECT clients
  641.    ENDIF
  642. ----------------------------------------------------------
  643.  
  644. Question 4
  645.  
  646. How to Page Through a Format File That Contains a READ?
  647.  
  648. Answer 4
  649.  
  650. Pressing the PAGE UP and PAGE DOWN keys skips one record 
  651. at a time, forward or backward, in the database and also 
  652. refreshes the GETs on the screen.
  653.  
  654. Objects can be placed on different pages or different screens 
  655. by placing a READ command in the format file. The READ command 
  656. should be placed after the last GET that would appear on each 
  657. screen. The following format file example places two objects 
  658. on the first screen and two more on the second screen. To 
  659. display the objects that are on the next screen, press the 
  660. PAGE UP or PAGE DOWN key.
  661.  
  662.       @5,1 GET <var1>
  663.       @6,1 GET <var2>
  664.       READ
  665.       @5,1 GET <var3>
  666.       @6,1 GET <var4>
  667. ----------------------------------------------------------
  668.  
  669. Question 5
  670.  
  671. The Cycle Command does not work for desktop screens. 
  672. How can I correct this?
  673.  
  674.  
  675. Answer 5
  676.  
  677. The Cycle command on the Window menu is designed to switch 
  678. between windows defined on the desktop. When a screen set 
  679. contains several windows and a desktop screen, Cycle stops 
  680. on the desktop screen. This is normal behavior, since the 
  681. Cycle command is intended to be used with window screens, 
  682. not the desktop.
  683.  
  684. To work around this behavior, define a window with no borders 
  685. instead of using a desktop screen. This will produce a window 
  686. that looks like the desktop.
  687.  
  688. The Cycle command is used for cycling through window screens 
  689. in a screen set or windows defined on the desktop. The 
  690. shortcut key CTRL+F1 can also be used to cycle through 
  691. windows on the desktop.
  692. ----------------------------------------------------------
  693.  
  694. ======================
  695. Part 5: Importing Data
  696. ======================
  697.  
  698. Question 1
  699.  
  700. How do I import a data file into Microsoft FoxPro for
  701. MS-DOS?
  702.  
  703. Answer 1
  704.  
  705. To import a data file, use either the IMPORT command or
  706. the APPEND FROM command. If you're receiving the error
  707. message "String too long to fit," make sure that no
  708. "field" in the source data file exceeds the field
  709. capacity for a FoxPro table. See the System Capacities
  710. topic in Help for additional information. A wide range of
  711. file formats is supported. See the Language Reference 
  712. manual for a complete list of the supported file formats.
  713. ----------------------------------------------------------
  714. ======================
  715. Part 6: BROWSE Command
  716. ======================
  717.  
  718. Overview of Questions
  719. ---------------------
  720.  
  721. 1   I modified the structure of my database, but when I
  722.     use the BROWSE command to view the file, I don't see
  723.     the changes. How can I correct this problem?
  724. 2   When I press the CTRL+N key combination in my program
  725.     to append a new record in the Browse window, I get the
  726.     musical note instead. How can I correct this problem?
  727. ----------------------------------------------------------
  728.  
  729. Question 1
  730.  
  731. I modified the structure of my database, but when I use
  732. the BROWSE command to view the file, I don't see the 
  733. changes.
  734. How can I correct this problem?
  735.  
  736. Answer 1
  737.  
  738. You are most likely using the BROWSE command from the
  739. System menu or the View panel, or you are issuing a BROWSE
  740. LAST or BROWSE PREFERENCE command from the Command window.
  741. To see these structural changes, you must first issue a 
  742. plain BROWSE command from the Command window to display 
  743. the new default representation of the database.
  744. ----------------------------------------------------------
  745.  
  746. Question 2
  747.  
  748. When I press the Ctrl+N key combination in my program to
  749. append a new record in the Browse window, I get the musical
  750. note instead. How can I correct this problem?
  751.  
  752. Answer 2
  753.  
  754. Ctrl+N is a shortcut key combination associated with the
  755. System menu. In your program, you must issue the SET
  756. SYSMENU ON command and/or use a BROWSE command instead of
  757. the BROWSE NOMENU command.
  758. ----------------------------------------------------------
  759. =============================================
  760. Part 7: Creating Applications and Executables
  761. =============================================
  762.  
  763. Overview of Questions
  764. ---------------------
  765.  
  766. 1   I've created an application that doesn't allow me to
  767.     edit my database files.  How can I correct this problem?
  768. 2   Why can't I build an executable file from within my
  769.     project?  The options to do so are dimmed and
  770.     unavailable.
  771. 3   When I attempt to build an executable file, I receive
  772.     the error message "Link command failed."  How can I
  773.     correct this problem?
  774. 4   My executable file runs correctly under the development
  775.     version, but I receive the error message "Feature not
  776.     available" under the stand-alone version.  How can I
  777.     correct this problem?
  778. ----------------------------------------------------------
  779.  
  780. Question 1
  781.  
  782. I've created an application that does not allow me to
  783. edit my database files.  How can I correct this problem?
  784.  
  785. Answer 1
  786.  
  787. Mark your database as excluded in the project, then
  788. rebuild your application.  You must distribute these files
  789. to your end users. Including the database in the project
  790. automatically makes these files read only.
  791. ----------------------------------------------------------
  792.  
  793. Question 2
  794.  
  795. Why can't I build an executable file from within my project?
  796. The options to do so are dimmed and unavailable.
  797.  
  798. Answer 2
  799.  
  800. To build an executable file, you must purchase the
  801. Microsoft FoxPro Distribution Kit and install it in your
  802. FoxPro directory.  Prior to installing the FoxPro
  803. Distribution Kit, make sure that the FoxPro files are not
  804. marked as read only.
  805. ----------------------------------------------------------
  806.  
  807. Question 3
  808.  
  809. When I attempt to build an executable file, I receive the
  810. error message "Link command failed." How can I correct
  811. this problem?
  812.  
  813. Answer 3
  814.  
  815. If you receive this error message, check the following
  816. items:
  817.  
  818. * Make sure that you have enough conventional memory.
  819. * Make sure that you have enough disk space.
  820. * Increase the number of file handles available to FoxPro.
  821.   To do this, you can increase the FILES setting in the
  822.   CONFIG.SYS file or increase the FILE HANDLES setting in
  823.   the SHELL.CFG file. This is specific to Novell networks.
  824. * Make sure that FoxPro can find your COMMAND.COM file.
  825. * Make sure that the following files are on your path:
  826.   WLINK8.EXE, and FOXSWAP.COM.
  827. * If you are running the 32-bit Extended Version of FoxPro,
  828.   make sure that DOSMEM isn't set to ON in your CONFIG.FP
  829.   file. For more information on DOSMEM, refer to "Customizing
  830.   FoxPro" in the Installation and Configuration guide.
  831. ----------------------------------------------------------
  832.  
  833. Question 4
  834.  
  835. My executable file runs correctly under the development
  836. version, but I receive the error message "Feature not
  837. available" under the stand-alone version. How can I
  838. correct this problem?
  839.  
  840. Answer 4
  841.  
  842. First, check the "Features Not Available" list in the
  843. FoxPro Distribution Kit documentation.  Certain features
  844. used for development aren't available in the applications
  845. and executables you create. If you still encounter
  846. problems, it's possible that you're using macro
  847. substitution in your program. The recommended workaround
  848. is to set up a statement which causes the compiler to see
  849. the possible options for the macro-substituted commands
  850. so that they will be compiled into the .EXE file.
  851. For example:
  852.  
  853.  IF .F.
  854.    MODIFY REPORT dummy
  855.    MODIFY LABEL dummy
  856.  ENDIF
  857.  
  858. This code allows the compiler to see the MODIFY REPORT and
  859. MODIFY LABEL commands, but because it is never executed,
  860. the report and label names can be meaningless (dummy).
  861. ----------------------------------------------------------
  862.                    ================
  863.                    End of PSSQA.TXT
  864.                    ================