Uncommon Knowledge - WC_DataFile_Next%
Published By | Date | Version | Knowledge Level | Keywords |
---|---|---|---|---|
Sprezzatura Ltd | 01 APR 1991 | 2.03+ | EXPERT | WINDOW_COMMON%, WC_DATAFILE_NEXT%, WC_NEW_DATAFILE%, WC_DATAFILE%, WC_SRC_FILE%, WC_SRC_DICT%, WC_BROWSE_NEXT% |
The name of the next datafile to use. To indicate to the system that a new datafile is active, the variable WC_New_Datafile% must also be set to TRUE. Then depending upon where in the prompt window the processing currently is, and upon the value of WC_Reset%, the following will happen :-
- WC_Datafile% will be set to WC_Datafile_Next%
- WC_Src_File% will be set to the file var of WC_Datafile_Next%
- WC_Src_Dict% will be set to the dict file var of WC_Datafile_Next%
- @DICT will be set to the dict file var of WC_Datafile_Next%
Note that these dictionary modifications will take place even if the dictionary was over-ridden on the command line with the DICT= syntax.
To force the system to recognise that WC_New_Datafile% and WC_Datafile_Next% have been set, the following action must be taken (where the legend reads "See Browse_Next" this indicates that the logic follows the same flow as WC_Browse_Next% at this point but instead of loading a new browse list it changes Datafile etc as above. The legend "Standard Caveat" means that using this is not a good idea on prompts other than the key, as the cursor is left stranded at the prompt with a blank screen and an @ID of "". The user is then able to proceed only by refreshing the screen with an F8 or by exiting the screen.)
Default
See WC_Browse_Next%. Standard Caveat.
Pre Prompt
See WC_Browse_Next%. Standard Caveat.
Options
See WC_Browse_Next%. Standard Caveat.
Edit
If WC_Reset% is not set will ignore setting of WC_New_Datafile%. Setting WC_Reset% to 2 or 3 will run the Post logic followed by the Perpetual logic and, if WC_Reset% is not changed, will load the new Datafile information. It will then run the Pre Prompt logic. Setting WC_Reset% to 4 it run the Perpetual logic and, if WC_Reset% is not changed, will load the new Datafile information. It will then run the Pre Prompt logic. If WC_Reset% is set to 5 it will behave as for WC_Reset% = 4 but omit the Perpetual logic. Standard Caveat.
Post
See WC_Browse_Next%. Standard caveat.
Invalid
See WC_Browse_Next%. Standard caveat.
Softkeys
See WC_Browse_Next%. Standard caveat.
(Volume 2, Issue 10, Page 11)