home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a079 / 1.img / FPDG.LZH / VOL2NUM0 / SAVESET / SAVESET.APP (.txt) < prev    next >
Encoding:
MS Visual FoxPro App  |  1993-02-03  |  6.7 KB  |  119 lines

  1. YfPrograms: SAVESET.PRG
  2.           RESTSET.PRG
  3.           SETNAMES.PRG
  4. Program SAVESET.PRG illustrates how to save all of the FoxPro 2.5 environmental settings and system memvars. You call SAVESET.PRG at the beginning of your program system. 
  5. Program SETNAMES.PRG initializes an array of SET keywords. To speed up processing, SAVESET.PRG only calls SETNAMES.PRG the first time it is called. SETNAMES.PRG saves its arrays in a memvar file (SETNAMES.MEM). From then on, SAVESET.PRG restores the arrays from the memvar file instead of calling SETNAMES.PRG.
  6. In the SETNAMES.PRG programs arrays are initialized. The array Set_OnOff is initialized with the names of keyword following the SET command verb for commands that turn ON and OFF an environmental option. The array Set_Values is initialized with name of keywords associated with SET commands for environmental parameters with a value other than ON and OFF. After the arrays are initialized, they are saved in a memvar file named SETNAMES.MEM using the SAVE command.
  7. You can change any of the environment setting any way you like and right before your program exits, your program can call RESTSET.PRG to restore the environmental settings and system memvars.
  8. Program RESTSET.PRG restores the original environmental settings and system memvars. First it reads the system Save_Set array from the SAVESETS.MEM memvar file. Then it reestablishes the original environment.
  9. SETNAMES.MEM2
  10. SETNAMES
  11. two argument set function
  12. SAVESETS
  13. Save_Set
  14. SAVE_SET
  15. SET_VALUE
  16. SET_ONOFF
  17. SETNAMES
  18. SET_J
  19. SET_I
  20. SAVESETS
  21. alternate
  22. autosave
  23. blink
  24. brstatus
  25. carry
  26. century
  27. clear
  28. clock
  29. compatible
  30. confirm
  31. console
  32. cursor
  33. debug
  34. deleted
  35. delimiters
  36. development
  37. escape
  38. exact
  39. exclusive
  40. fields
  41. fixed
  42. fullpath
  43. heading
  44. intensity
  45. logerrors
  46. mouse
  47. multilock
  48. notify
  49. optimize
  50. printer
  51. readborder
  52. resource
  53. safety
  54. scoreboard
  55. shadows
  56. space
  57. status
  58. status bar
  59. sticky
  60. sysmenu
  61. textmerge
  62. title
  63. trbetween
  64. unique
  65. blocksize
  66. color
  67. currency
  68. decimals
  69. default
  70. hours
  71. margin
  72. memowidth
  73. message
  74. odometer
  75. pdsetup
  76. point
  77. procedure
  78. separator
  79. typeahead
  80. mouse
  81. clock
  82. alternate
  83. printer
  84. delimiters
  85. device
  86. udfparm
  87. SETNAMES.MEM
  88. Set_*
  89. SET_ONOFF
  90. SET_VALUE
  91. SETNAMES
  92. SETNAMES.MEM2
  93. SETNAMES
  94. SAVESETS
  95.  OFF8
  96. SET &Save_Temp
  97. SET  &Set_Value[Set_I]   TO (Save_Set[Set_J])  
  98.   TO 
  99. SET &Save_Temp
  100. SET DEVICE TO &Save_Set[Set_J+1])
  101. SET UDFPARMS TO &Save_Set[Set_J+2])
  102. SAVE_SET
  103. SET_VALUE
  104. SET_ONOFF
  105. SETNAMES
  106. SAVESETS
  107. SET_J
  108. SET_I
  109. SAVE_TEMP
  110. c:\foxprodg\vol2num0\saveset\
  111. SAVESET.ART
  112. SAVESET.PRG
  113. c:\windows\temp\
  114. SAVESET.FXP
  115. SETNAMES.PRG
  116. SETNAMES.FXP
  117. RESTSET.PRG
  118. RESTSET.FXP
  119.