home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / mbug / mbug001.arc / PART5.IQS / PART5.INS
Text File  |  1979-12-31  |  11KB  |  233 lines

  1. .PO0
  2.                                dBAS┼ I╔  PAR╘ 5
  3.  
  4.      Thσ operatioε oµ dBasσ caε bσ varieΣ iε man∙ subtlσ ways« Fo≥ example¼ ì
  5. yo⌡ ma∙ no⌠ likσ thσ wa∙ APPEN─ display≤ thσ colon≤ a⌠ thσ enΣ oµ fields¼ o≥ ì
  6. thσ wa∙ thσ systeφ beep≤ anΣ move≤ oε t∩ thσ nex⌠ fielΣ wheneve≥ thσ curren⌠ ì
  7. fielΣ i≤ full.
  8.  
  9.      Thesσ attribute≤ caε bσ altereΣ b∙ usσ oµ ß numbe≥ oµ parameter≤ whicΦ ì
  10. arσ describeΣ iε thσ dBasσ manuals« Therσ arσ ove≥ 2░ oµ theφ bu⌠ the∙ al∞ ì
  11. worδ iε thσ samσ way« Thσ ke∙ t∩ thei≥ usσ i≤ thσ SE╘ command.
  12. 
  13. SE╘ anΣ parameterS.
  14.  
  15.      Thσ SE╘ commanΣ take≤ tw∩ forms:
  16.  
  17.                SE╘ <parm1╛ [ON]
  18.                            [OFF]
  19.  
  20. whicΦ allow≤ toggleΣ parameter≤ t∩ bσ switcheΣ oε o≥ off¼ and
  21.  
  22.                SE╘ <parm2╛ T╧ <opt>
  23.  
  24. whicΦ allow≤ thosσ parameter≤ tha⌠ neeΣ onσ oµ thσ differen⌠ string≤ describeΣ ì
  25. belo≈ t∩ havσ it≤ valuσ altered.
  26.      
  27.      Probabl∙ thσ mos⌠ importan⌠ paramete≥ fo≥ thσ beginninτ dBasσ programme≥ ì
  28. arσ thosσ whicΦ assis⌠ iε debugging« Thσ firs⌠ oµ thesσ i≤ thσ TAL╦ parameter¼ ì
  29. whicΦ default≤ t∩ ON« Wheneve≥ ß valuσ i≤ storeΣ t∩ ß memor∙ variable¼ tha⌠ ì
  30. valuσ i≤ displayeΣ oε thσ screen¼ unles≤ TAL╦ i≤ se⌠ off.
  31.  
  32.      Thσ resul⌠ oµ thi≤ i≤ tha⌠ runninτ program≤ wil∞ producσ ß streaφ iµ ì
  33. intermediatσ value≤ oε thσ screen¼ whicΦ wil∞ confusσ thσ user¼ (no⌠ t∩ ì
  34. mentioε thσ programmer⌐ anΣ screw≤ u≡ beautifull∙ designeΣ screeε displays« S∩ ì
  35. thσ firs⌠ linσ iε mos⌠ program≤ i≤ usually
  36.  
  37.                SE╘ TAL╦ OFF
  38.  
  39. whicΦ disable≤ thi≤ feature.
  40.  
  41.      Thσ ECH╧ paramete≥ i≤ als∩ usefu∞ iε debugging« WitΦ ECH╧ se⌠ on¼ al∞ ì
  42. command≤ whicΦ arσ reaΣ froφ ß commanΣ filσ arσ als∩ displayeΣ oε thσ screen« ì
  43. ECH╧ default≤ t∩ OFF« Iε effect¼ thi≤ i≤ ß tracσ facilit∙ fo≥ trackinτ prograφ ì
  44. execution.
  45.  
  46.      ┴ simila≥ facilit∙ i≤ provideΣ b∙ thσ DEBU╟ parameter╗ witΦ thi≤ se⌠ on¼ ì
  47. line≤ oµ commanΣ file≤ arσ sen⌠ t∩ thσ printe≥ a≤ the∙ arσ executed« Thi≤ ì
  48. avoid≤ messinτ u≡ screeε displays« Again¼ DEBU╟ default≤ t∩ OFF.
  49.  
  50.      Aε eveε morσ usefu∞ facilit∙ fo≥ trackinτ dowε bug≤ i≤ thσ STE╨ ì
  51. parameter« WitΦ STE╨ se⌠ ON¼ thσ systeφ wil∞ executσ ß singlσ linσ oµ ß ì
  52. commanΣ filσ a⌠ ß time¼ theε hal⌠ anΣ wai⌠ whilσ thσ use≥ examine≤ memor∙ ì
  53. variable≤ o≥ enter≤ othe≥ commanΣ lines¼ o≥ quit≤ thσ commanΣ filσ o≥ ì
  54. continues« Again¼ STE╨ default≤ t∩ OFF.
  55.  
  56. è     Thσ nex⌠ grou≡ oµ paramete≥ contro∞ wherσ outpu⌠ goes« Likσ Unix¼ dBasσ ì
  57. provide≤ ß facilit∙ fo≥ redirectablσ I/O¼ anΣ treat≤ device≤ anΣ file≤ alikσ - ì
  58. a⌠ leas⌠ a≤ fa≥ a≤ outpu⌠ i≤ concerned« Generally¼ outpu⌠ default≤ t∩ thσ ì
  59. consolσ device¼ bu⌠ tha⌠ caε bσ changeΣ wherσ necessary.
  60.  
  61.      Thσ threσ parameter≤ concerneΣ arσ CONSOLE¼ PRIN╘ anΣ ALTERNATE« SE╘ ì
  62. CONSOL┼ O╬ wil∞ direc⌠ outpu⌠ t∩ thσ screen¼ whicΦ i≤ thσ usua∞ selectioε anΣ ì
  63. thσ default« Settinτ CONSOL┼ OF╞ doe≤ havσ it≤ uses¼ though¼ a≤ wσ shal∞ see.
  64.  
  65.      PRIN╘ i≤ usuall∙ se⌠ OFF¼ bu⌠ witΦ i⌠ se⌠ ON¼ an∙ LIST≤ o≥ DISPLAY≤ wil∞ ì
  66. producσ aε outpu⌠ t∩ thσ printer.
  67.  
  68.      Finally¼ thσ use≥ ma∙ wisΦ t∩ direc⌠ ß repor⌠ o≥ othe≥ outpu⌠ t∩ ß disδ ì
  69. filσ fo≥ subsequen⌠ editinτ o≥ processinτ b∙ anothe≥ program« Thi≤ i≤ achieveΣ ì
  70. witΦ thσ ALTERNAT┼ parameter« Tw∩ form≤ oµ SE╘ ALTERNAT┼ arσ involved« Thσ ì
  71. first¼ SE╘ ALTERNAT┼ T╧ <filename╛ set≤ u≡ thσ namσ oµ thσ filσ t∩ whicΦ thσ ì
  72. outpu⌠ wil∞ bσ sent« SE╘ ALTERNAT┼ O╬ theε start≤ collectioε oµ outpu⌠ iε thσ ì
  73. disδ file¼ anΣ SE╘ ALTERNAT┼ OF╞ stop≤ it.
  74.  
  75.      Therσ rσ severa∞ use≤ fo≥ thesσ commands« Fo≥ example¼ i⌠ i≤ commoε t∩ ì
  76. usσ WAI╘ T╧ <memvar╛ commanΣ t∩ inpu⌠ single-characte≥ men⌡ choicσ froφ thσ ì
  77. user« Thσ onl∙ troublσ i≤ tha⌠ thσ WAI╘ commanΣ produce≤ ß WAITIN╟ messagσ oε ì
  78. thσ screen¼ whicΦ mos⌠ (wel∞ some⌐ programmer≤ finΣ aestheticall∙ offensive« ì
  79. Thi≤ codσ segmen⌠ get≤ arounΣ that:
  80.  
  81.           *Suppresse≤ screeε output
  82.           SE╘ CONSOL┼ OFF
  83.           *Accep⌠ inpu⌠ character
  84.           WAI╘ T╧ choice
  85.           *Enablσ outpu⌠ again
  86.           SE╘ CONSOL┼ ON
  87.  
  88.      Similarly¼ somσ programmer≤ likσ t∩ disguisσ thσ fac⌠ tha⌠ the∙ wrotσ aε ì
  89. applicatioε iε dBasσ b∙ suppressinτ thσ dBasσ sign-ofµ message:
  90.  
  91.           SE╘ CONSOL┼ OFF
  92.           QUIT
  93.  
  94.      Oµ course¼ the∙ als∩ renamσ DBase.coφ t∩ RUN.CO═ o≥ similar¼ anΣ thσ use≥ ì
  95. think≤ he'≤ hireΣ ß hotsho⌠ CBASIC-▓ programmer!
  96.  
  97.           SE╘ ALTERNAT┼ ha≤ ß numbe≥ oµ uses¼ sucΦ a≤ sendinτ report≤ t∩ disδ ì
  98. files« It'≤ als∩ possiblσ t∩ creatσ skeleta∞ MailMergσ letter≤ anΣ othe≥ tex⌠ ì
  99. file≤ b∙ usinτ SE╘ ALTERNATE« Fo≥ example║ 
  100.  
  101.           COP┘ STRUCTUR┼ EXTENDED
  102.  
  103. caε bσ useΣ t∩ creatσ database≤ containinτ thσ fielΣ name≤ oµ thσ curren⌠ ì
  104. database¼ anΣ theε ß shor⌠ dBasσ prograφ caε bσ useΣ t∩ producσ ß tex⌠ filσ ì
  105. containinτ thσ appropriatσ .R╓ <fieldname╛ line≤ fo≥ MailMerge« Thi≤ i≤ morσ ß ì
  106. matte≥ oµ ingenuit∙ thaε programminτ style¼ however¼ iε addition¼ SE╘ ì
  107. ALTERNAT┼ caε bσ useΣ t∩ producσ audi⌠ trails.
  108.  
  109.  
  110. è     Somσ parameter≤ affec⌠ thσ full-screeε editinτ operation≤ oµ dBase¼ sucΦ ì
  111. a≤ APPEND¼ EDI╘ anΣ CREATE« First¼ thosσ unfortunatσ soul≤ wh∩ d∩ no⌠ havσ ì
  112. terminal≤ witΦ curso≥ addressinτ caε implemen⌠ ß line-orienteΣ versioε oµ ì
  113. dBasσ witΦ thσ command:
  114.  
  115.                SE╘ SCREE╬ OFF
  116.  
  117.      Naturally¼ i⌠ default≤ t∩ ON« Thi≤ line-orienteΣ versioε i≤ trul∙ ì
  118. dreadfu∞ t∩ use« N∩ furthe≥ comment
  119.  
  120.      dBasσ screen≤ generall∙ usσ colon≤ t∩ delimi⌠ fields¼ s∩ tha⌠ thσ use≥ ì
  121. caε seσ ha≈ mucΦ spacσ i≤ lef⌠ t∩ typσ iε name≤ o≥ othe≥ lonτ data« However¼ ì
  122. iµ onσ design≤ ß men⌡ a≤ ß forma⌠ screeε witΦ ß singlσ characte≥ inpu⌠ field¼ ì
  123. thσ colon≤ arσ ß bi⌠ oµ ß giveawa∙ a≤ t∩ ho≈ i⌠ wa≤ done.
  124.  
  125.      Thσ SE╘ COLO╬ OF╞ commanΣ wil∞ ge⌠ riΣ oµ them« SE╘ COLO╬ O╬ wil∞ displa∙ ì
  126. theφ again¼ anΣ thi≤ i≤ thσ defaul⌠ mode.
  127. 
  128. DON'╘ LIK┼ TH┼ BEEPS?
  129.  
  130.           Onσ defaul⌠ oµ dBase'≤ tha⌠ ╔ don'⌠ likσ i≤ thσ wa∙ tha⌠ wheε ß use≥ ì
  131. fill≤ ß fielΣ durninτ appenΣ o≥ edit¼ i⌠ simpl∙ goe≤ oε t∩ thσ nex⌠ fielΣ witΦ ì
  132. ß beep« Wheε you'rσ typinτ fas⌠ (anΣ mos⌠ datß entr∙ operator≤ arσ fast)¼ b∙ ì
  133. thσ timσ yo⌡ recognizσ thσ beep¼ you'rσ filleΣ halµ oµ thσ nex⌠ fielΣ witΦ ì
  134. overflo≈ froφ thσ curren⌠ one.
  135.      
  136.      SE╘ CONFIR═ O╬ get≤ riΣ oµ thσ problem« No≈ dBasσ wil∞ no⌠ proceeΣ t∩ thσ ì
  137. nex⌠ fielΣ unti∞ yo⌡ hi⌠ <CR>« I⌠ wil∞ stil∞ bee≡ wheε ß fielΣ i≤ filleΣ up¼ ì
  138. however¼ whicΦ i≤ sensible.
  139.  
  140.      Iµ yo⌡ finΣ tha⌠ thσ beepinτ i≤ drivinτ yo⌡ officσ neighbour≤ u≡ thσ wal∞ ì
  141. yo⌡ caε suppres≤ thσ beepinτ witΦ (herσ wσ g∩ again⌐ SE╘ BEL╠ OFF« I⌠ default≤ ì
  142. t∩ on.
  143.  
  144.      Somσ computers¼ likσ Kaypr∩ II¼ d∩ no⌠ havσ halµ intensit∙ video¼ anΣ arσ ì
  145. iε fac⌠ sen⌠ ß littlσ craz∙ b∙ thσ null≤ tha⌠ dBasσ transmit≤ iε placσ oµ thσ ì
  146. absen⌠ halµ intensit∙ sequences« Thσ Kaypr∩ display≤ lot≤ oµ apoatrophe≤ iε ì
  147. thσ middlσ oµ forms« SucΦ machine≤ caε bσ sorteΣ ou⌠ b∙ 
  148.  
  149.                SE╘ INTENSIT┘ OFF
  150.  
  151. (i⌠ default≤ t∩ ON).
  152.  
  153.      I⌠ ofteε happen≤ tha⌠ ß lo⌠ oµ datß entr∙ tex⌠ i≤ repeated« Fo≥ example¼ ì
  154. iε enterinτ orders¼ thσ onσ produc⌠ ma∙ dominatσ entirely¼ s∩ tha⌠ thσ use≥ i≤ ì
  155. perpetuall∙ typinτ thσ samσ information« Thσ CARR┘ paramete≥ caε savσ worδ ì
  156. here.
  157.  
  158.      SE╘ CARR┘ O╬ wil∞ carr∙ thσ informatioε froφ thσ las⌠ APPEN─ forφ ont∩ ì
  159. thσ curren⌠ one¼ s∩ tha⌠ insteaΣ oµ enterinτ completel∙ ne≈ data¼ thσ use≥ caε ì
  160. simpl∙ edi⌠ thσ datß carrieΣ ove≥ froφ thσ las⌠ screen« I⌠ doesn'⌠ alway≤ worδ ì
  161. ou⌠ t∩ bσ tha⌠ mucΦ morσ efficient¼ bu⌠ oε occasion≤ i⌠ caε savσ ß lo⌠ oµ ì
  162. effor⌠ anΣ errors.
  163.  
  164. è     Finally¼ dBasσ normall∙ insert≤ ß spacσ betweeε field≤ wheε record≤ arσ ì
  165. LISTeΣ o≥ DISPLAYed¼ jus⌠ s∩ thσ use≥ caε so⌠ theφ out« SE╘ RA╫ O╬ eliminate≤ ì
  166. thesσ spaces¼ s∩ tha⌠ thσ field≤ arσ concatenateΣ directly.
  167.  
  168.      ┴ couplσ oµ parameter≤ contro∞ thσ wa∙ thσ databasσ recorΣ pointe≥ i≤ ì
  169. positioned« Thσ firs⌠ onσ help≤ t∩ ge⌠ arounΣ thσ fundamenta∞ 32-fielΣ ì
  170. limitatioε oµ dBasσ b∙ lettinτ thσ use≥ linδ tw∩ database≤ t∩ forφ onσ witΦ ì
  171. 64-fields.
  172.  
  173.      SE╘ LINKAG┼ O╬ make≤ al∞ dBase'≤ sequentia∞ command≤ sucΦ a≤ LIST¼ REPOR╘ ì
  174. anΣ SU═ (tha⌠ is¼ command≤ tha⌠ havσ ß scopσ parameter⌐ perforφ positioninτ oε ì
  175. botΦ thσ primar∙ anΣ secondar∙ databases« I⌠ default≤ t∩ OFF« ╔ mus⌠ admi⌠ ì
  176. tha⌠ ╔ havσ neve≥ haΣ ß grea⌠ dea∞ oµ succes≤ witΦ thi≤ command╗ maybσ I'φ ì
  177. missinτ something¼ althougΦ ╔ als∩ believσ tha⌠ therσ werσ bug≤ associateΣ ì
  178. witΦ thσ earl∙ version≤ oµ dBase.
  179.  
  180.      Thσ FIN─ commanΣ normall∙ make≤ strinτ comparison≤ u≡ t∩ anΣ includinτ ì
  181. thσ las⌠ characte≥ oµ thσ FIN─ parameter¼ bu⌠ no⌠ beyond« Thus¼ FIN─ SMIT╚ ì
  182. wil∞ matcΦ SMIT╚ anΣ als∩ SMITHSON¼ SMITH┘ anΣ n∩ doub⌠ others.
  183.  
  184.      WitΦ SE╘ EXAC╘ ON¼ botΦ string≤ mus⌠ bσ thσ samσ length¼ s∩ tha⌠ FIN─ ì
  185. SMIT╚ wil∞ onl∙ matcΦ ß fielΣ containinτ SMITH« I⌠ default≤ t∩ OFF.
  186.  
  187.      WitΦ dBasσ 2.4¼ ß ne≈ paramete≥ ha≤ beeε addeΣ t∩ contro∞ thσ wa∙ deleteΣ ì
  188. record≤ arσ treated« dBasσ 2.│ wil∞ locatσ anΣ displa∙ deleteΣ record≤ thσ ì
  189. samσ wa∙ a≤ an∙ others¼ whicΦ rathe≥ defeat≤ thσ purposσ oµ deletinτ them« ì
  190. dBasσ 2.┤ default≤ t∩ SE╘ DELETE─ OFF¼ whicΦ act≤ thσ samσ way.
  191.      
  192.      However¼ witΦ SE╘ DELETE─ ON¼ deleteΣ record≤ canno⌠ bσ founΣ o≥ ì
  193. processeΣ b∙ an∙ commanΣ whicΦ allow≤ thσ nex⌠ phrase¼ sucΦ a≤ LIST¼ DISPLAY¼ ì
  194. LOCAT┼ anΣ others.
  195.  
  196.      Tha⌠ leave≤ jus⌠ ß couplσ oµ miscellaneou≤ parameters║ SE╘ ESCAP┼ OF╞ ì
  197. (defaul⌠ ON⌐ disable≤ thσ abilit∙ oµ thσ  ESCAP┼ ke∙ t∩ interrup⌠ executinτ ì
  198. commanΣ files¼ anΣ thereforσ stop≤ user≤ breakinτ int∩ thσ systems.
  199.  
  200.      Finally¼ thσ REPOR╘ commanΣ normall∙ perform≤ ß pagσ ejec⌠ beforσ ì
  201. startinτ t∩ print¼ probabl∙ wastinτ pape≥ a≤ i⌠ doe≤ so« SE╘ EJEC╘ OF╞ wil∞ ì
  202. suppres≤ thi≤ deforestator∙ behavior.
  203. 
  204. Morσ Comple° SETS
  205.  
  206.           Whilσ we'rσ oε thσ subjec⌠ oµ REPORTs¼ let'≤ star⌠ lookinτ a⌠ morσ ì
  207. comple° version≤ oµ thσ SE╘ command« SE╘ HEADIN╟ T╧ <string╛ set≤ thσ headinτ ì
  208. oµ reports.
  209.  
  210.      SE╘ FORMA╘ T╧ caε takσ onσ oµ severa∞ options║ SCREEN¼ PRIN╘ o≥ ì
  211. <filename>« dBasσ make≤ extensivσ usσ oµ forma⌠ files¼ whicΦ contaiε @..SAY.« ì
  212. GE╘ commands« SucΦ form≤ caε bσ sen⌠ t∩ eithe≥ thσ screeε o≥ printe≥ b∙ eithe≥ ì
  213. oµ thσ firs⌠ tw∩ options« Thσ thirΣ specifie≤ thσ forma⌠ filσ froφ whicΦ thσ ì
  214. forφ wil∞ bσ read.
  215.  
  216.      Normally¼ dBasσ create≤ file≤ oε thσ CP/═ defaul⌠ o≥ curren⌠ drivσ ì
  217. (usuall∙ A:)¼ unles≤ thi≤ i≤ over-riddeε b∙ explici⌠ drivσ naminτ a≤ par⌠ oµ ì
  218. thσ filσ names« However¼ iµ al∞ command≤ anΣ datß file≤ fo≥ aε applicatioε arσ ìèoε drivσ B║ theε thσ defaul⌠ drivσ caε bσ se⌠ t∩ B║ b∙ SE╘ DEFAUL╘ T╧ B:« Oε ì
  219. earl∙ version≤ oµ dBase¼ onσ haΣ t∩ omi⌠ thσ colon¼ thus║ SE╘ DEFAUL╘ T╧ B« 
  220.  
  221.      SE╘ DAT┼ T╧ <datestring╛ set≤ thσ systeφ date¼ withou⌠ performinτ an∙ ì
  222. validatioε oε it¼ whicΦ i≤ thσ simples⌠ wa∙ t∩ ge⌠ arounΣ versioε 2.3'≤ ì
  223. predispositioε fo≥ thσ U╙ datσ format« 
  224.  
  225.      Finally¼ SE╘ INDE╪ T╧ <indexfile>¼ <indexfile>,.« i≤ anothe≥ wa∙ oµ ì
  226. sayinτ US┼ <datafile╛ INDE╪ <indexfile>,.« wheε you'vσ alread∙ saiΣ US┼ ì
  227. <datafile>« It'≤ ß bi⌠ quicker¼ that'≤ all.
  228.  
  229.                Tha⌠ conclude≤ ou≥ guideΣ tou≥ arounΣ dBasσ parameters.
  230.  
  231.  
  232.                                  EN─  PAR╘ 5.
  233.