Alternative to Changing Table Under POPUP...PROMPT FIELDID: Q109582 The information in this article applies to:
SUMMARYWhen a popup is defined with the PROMPT FIELD clause, closing the database file on which the popup is based when the popup is still in memory can cause problems.
MORE INFORMATIONIn a program, it is possible to close and delete the database on which a POPUP ... PROMPT FIELDS command is based and then substitute another database in place of the original. The new database can have a different structure, a different number of records, and so on. However, FoxPro is not designed to allow for the deletion and substitution of databases underneath active or defined popups. This practice is not supported and should not be used. The following program demonstrates a method by which the table that underlies a POPUP ... PROMPT FIELD can be closed and re-created while the popup is in memory.
If you need to display a new popup to list information from a different
table, release the original popup with the RELEASE POPUP command. Then,
create a new popup with the DEFINE POPUP command.
Additional reference words: FoxMac FoxDos FoxWin 2.50 2.50a 2.50b KBCategory: kbenv kbprg kbcode KBSubcategory: FxenvMemory |
|
Last Reviewed: June 27, 1995 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |