home *** CD-ROM | disk | FTP | other *** search
- DTIDY.DOC
-
- dTID┘ i≤ ß prograφ fo≥ dBAS┼ I╔ users«á I⌠ 'tidie≤ upº CM─ file≤ - tha⌠ is¼ ì
- i⌠ indent≤ loop≤ properly¼ expand≤ shorteneΣ words¼ anΣ put≤ dBAS┼ keyword≤ ì
- int∩ uppe≥ casσ fo≥ clarity«á Thσ resul⌠ i≤ ß CM─ filσ tha⌠ i≤ mucΦá easie≥ ì
- t∩ worδ oε anΣ debug.
-
- Fo≥ example¼ iµ you≥ CM─ filσ lookeΣ likσ this:
-
- * Print a linE of dashes
- stor 10 to x
- do whil x>0
- ??'-'
- stor x-1 to x
- endd
-
- dTIDY would make it look like this:
-
- * print a line of dashes
- STORE 10 TO x
- DO WHILE x > 0
- ?? '-'
- STORE x-1 TO x
- ENDDO
-
-
- dTID┘ als∩ checking≤ thσ CM─ filσ fo≥ errors« I⌠ check≤ fo≥ missinτ quotes¼ ì
- baΣ characters¼ line≤ to∩ long¼ ßnΣ error≤ iε loo≡ structure¼ (likσ missinτ ì
- ENDDOs¼á fo≥á instance)«á I⌠á als∩ wil∞ detec⌠ perniciou≤á 'lo∩≡á crossove≥ ì
- errorsº likσ this║
-
- DO WHILE t
- IF x > 5
- ? "YES"
- ENDDO * wrong
- ENDIF * wrong (but dBASE doesn't say so!)
-
- Thi≤ erro≥ checkinτ caε greatl∙ speeΣ u≡ thσ debugginτ process.
-
-
- dTID┘ i≤ designeΣ t∩ bσ a≤ hßrdware-independσn⌠ a≤ possible« I⌠ shoulΣ worδ ì
- oε an∙ 64╦ CP/═ system¼ 808░ o≥ Z80¼ witΦ jus⌠ abou⌠ an∙ terminal«
-
- Thσ stylσ produceΣ b∙ dTID┘ i≤ ß standarΣ dBAS┼ style¼ a≤ useΣ iε thσ dBAS┼ ì
- technica∞á journal«á Thσá stylσá i≤ als∩ simila≥ t∩ tha⌠á produceΣá b∙á thσ ì
- widely-useΣ commercia∞ dBAS┼ utilit∙ dUTIL¼á froφ Fo° anΣ Geller«á Wheε yo⌡ ì
- comσá t∩ looδ a⌠ you≥ CM─ file≤ iε ╢ month≤ time¼á the∙ wil∞ bσ s∩ eas∙á t∩ ì
- read¼ yo⌡ won'⌠ believσ it.
-
- Charles Perry
- 7 Bowaga St
- Indooroopilly, Brisbane,
- Australia, 4068.
-
- Queensland University Osborne Users Group, Brisbane, 22 June 1987.
-
-
-