home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / BBS_UTIL / BM0406_A.ZIP / RCHAT401.ZIP / RSB4ANCH.MRG < prev    next >
Text File  |  1992-09-14  |  4KB  |  110 lines

  1. * ------------[ BLED merge (c) Ken Goosens ]-------------
  2. * Merge this against OLD\RBBSSUB4.BAS to produce RBBSSUB4.BAS
  3. * OLD\RBBSSUB4.BAS:  Date 8-26-1990  Size 126891 bytes
  4. * ------------[ Created 08-28-1990 14:14:36 ]------------
  5. * REPLACING old line(s) by new
  6. 57000 ' $SUBTITLE: 'Toggle - Toggle User Preferences'
  7. ' $PAGE
  8. '
  9. '  NAME    -- Toggle
  10. '
  11. '  INPUTS  -- ToggleOption      Option to toggle or view
  12. '                               according to the following:
  13. '    ToggleOption         PREFERENCE
  14. '   Toggle   VIEW
  15. '     1       -1           Autodownload
  16. '     2       -2           Bulletin review on logon
  17. '     3       -3           Case change
  18. '     4       -4           File review on logon
  19. '     5       -5           Highlight
  20. '     6       -6           Line feeds
  21. '     7       -7           Nulls
  22. '     8       -8           TurboKey
  23. '     9       -9           Expert
  24. '    10      -10           Bell
  25. '    11      -11           Chat Availability
  26. '    12      -12           ANSI Editor
  27. '
  28. '  OUTPUTS -- ZSubParm   passed from TPut
  29. '
  30. '  PURPOSE -- Sets or views any single user preference value
  31. '
  32.       SUB Toggle (ToggleOption) STATIC
  33.       ZSubParm = 0
  34.       IF ToggleOption < 0 THEN _
  35.          GOTO 57005
  36.       ON ToggleOption GOSUB _
  37.          57010, _         'Autodownload
  38.          57120, _         'Bulletin review on logon
  39.          57260, _         'Case change
  40.          57150, _         'File review on logon
  41.          57040, _         'Highlight
  42.          57100, _         'Line feeds
  43.          57210, _         'Nulls
  44.          57230, _         'TurboKey
  45.          57190, _         'Expert
  46. * ------[ first line different ]------
  47.          57170, _         'Bell                                      ' RCHAT
  48.          57300, _         'Internode chat availability               ' RCHAT
  49.          57320            'Full Screen Editor
  50.       EXIT SUB
  51. * REPLACING old line(s) by new
  52. 57005 CALL AskMore ("",ZTrue,ZTrue,WasX,ZTrue)
  53.       ON -ToggleOption GOSUB _
  54.          57030, _         'Autodownload
  55.          57130, _         'Bulletin review on logon
  56.          57270, _         'Case change
  57.          57160, _         'File review on logon
  58.          57050, _         'Highlight
  59.          57110, _         'Line feeds
  60.          57220, _         'Nulls
  61.          57240, _         'TurboKey
  62.          57200, _         'Expert
  63. * ------[ first line different ]------
  64.          57180, _         'Bell                                      ' RCHAT
  65.          57310, _         'Internode chat availability               ' RCHAT
  66.          57330            'Full Screen Editor
  67.       EXIT SUB
  68. * REPLACING old line(s) by new
  69. 57280 ZUseTPut = (ZUpperCase OR ZXOnXOff)
  70.       RETURN
  71. * ------[ first line different ]------
  72. * INSERTING new line(s)
  73. 57300 ZAvailableForChat = NOT ZAvailableForChat                      ' RCHAT
  74. 57310 ZOutTxt$ = "Available for node chat: " + MID$("NO YES", 1 -3 * ZAvailableForChat, 3)
  75.       CALL QuickTPut1 (ZOutTxt$)                                     ' RCHAT
  76.       RETURN
  77. 57320 ZFullScreenEditor = NOT ZFullScreenEditor
  78. 57330 CALL QuickTPut1 ("Full Screen Editor " + FNOffOn$(ZFullScreenEditor))
  79.       END SUB
  80. '
  81. * REPLACING old line(s) by new
  82. 64636 IF ZAnsIndex < ZLastIndex THEN _
  83.          GOTO 64638
  84. * ------[ first line different ]------
  85.       ZOutTxt$ = "A)utodwnld   B)ullet  C)ase     E)ditor   F)ile   H)ilite"
  86.       CALL TopPrompt
  87.       ZOutTxt$ = "L)ine feeds  N)ulls   T)urboKey X)pert    !)bell"
  88.       CALL TopPrompt
  89.       ZOutTxt$ = "I)nternode chat page availability"                  ' RCHAT
  90.       CALL TopPrompt
  91.       ZOutTxt$ = "Toggle which option on/off?" + ZPressEnter$
  92. 64638 ZStackC = ZTrue
  93.       ZTurboKey = -ZTurboKeyUser
  94.       CALL PopCmdStack
  95.       IF ZWasQ = 0 OR ZSubParm < 0 THEN _
  96.          EXIT SUB
  97.       ZWasZ$ = ZUserIn$(ZAnsIndex)
  98.       CALL AllCaps (ZWasZ$)
  99.       ZFF = INSTR("ABCFHLNTX!IE",ZWasZ$)                              ' RCHAT
  100.       IF ZFF < 1 THEN _
  101.          GOTO 64636
  102.       CALL Toggle (ZFF)
  103.       GOTO 64636
  104.       END SUB
  105.  
  106.       SUB TopPrompt STATIC
  107.       CALL ColorPrompt (ZOutTxt$)                                     ' KG021401
  108.       CALL QuickTPut1 (ZOutTxt$)                                      ' KG021401
  109.       END SUB
  110.