home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.tar / ftp.whtech.com / club100 / bus / lucnv.do < prev    next >
Text File  |  2006-10-19  |  5KB  |  130 lines

  1. DOCUMENTATION FOR LUCNV.BA
  2.  
  3.     This program is designed to convert a Lucid spreadsheet file to a form 
  4. which can be uploaded for use on another spreadsheet program.  Specifically, 
  5. the Lucid file is converted to a VISICALC ASCII file.  This file can be 
  6. uploaded to another PC, and, in turn, can be converted to LOTUS 1-2-3 format. 
  7. This is what I use this program for.  I developed it to handle spreadsheets 
  8. developed on the M100, but which either grew too large for my 32K, or which 
  9. needed to be used on several PC's at work.
  10.  
  11.      The program is in BASIC, and when it is executed the Lucid file to be 
  12. converted must be in RAM.  The output file can either be in RAM, if there's 
  13. room, or any other colon delimited file, such as CAS:, or, as I use it, a 0: 
  14. disk file.
  15.  
  16.      All Lucid cell entries can be handled by the program, although some either 
  17. don't have a VISICALC equivalent, or may operate differently.  Listed below are 
  18. some known cautions:
  19.  
  20. 1.The Lucid REF function is converted to a text string.  There is no equivalent 
  21. in either VISICALC or Lotus.
  22.  
  23. 2. TBL is converted to a combination of VLOOKUP and HLOOKUP which acts 
  24. similarly.
  25.  
  26.     2a. Note that Lucid and Lotus work differently for values between exact 
  27. figures in the lookup tables. Lucid goes to the next higher entry, while Lotus 
  28. goes to the lower bound entry.
  29.  
  30.     2b. Lotus needs the upper left corner filled.
  31.  
  32.     2c. A very important note is that you have to add, either on the Lucid 
  33. lookup table or in Lotus, a row after the last row of lookup values counting 
  34. the columns 1,2,3,... This is needed to make the one dimensional Lotus lookup 
  35. functions work like Lucid's two dimensional TBL function.
  36.  
  37. 3. Lotus may not work the same for text entries referenced by equations.
  38.  
  39. 4. Cell formulas are converted with lots of parentheses because VISICALC uses 
  40. left to right priority, not algebraic like Lucid and Lotus.
  41.  
  42. 5.Finally, most formats from Lucid are ignored, so you'll have to fix them when 
  43. the conversion is complete.
  44.  
  45.      When you run the program, you'll be prompted for an output file type, ie 
  46. RAM:, CAS:, 0:, LCD:, LPT:. Then you'll be prompted for the Lucid file name.
  47. If the program finds the .CA file, then, conversion will proceed.  Converted 
  48. cell entries are echoed to the screen.  The converted file will be named 
  49. XXXXXX.DO, where XXXXXX is the Lucid file name.  The converted statements will 
  50. be echoed to the screen.
  51.  
  52.      The file name finder is acknowledged as borrowed from another program, but 
  53. I don't recall which one.
  54.  
  55.      Listed below is a formula listing for a sample spreadsheet and the 
  56. resulting converted file.  Good luck.
  57.  
  58.  
  59.     row/colA1B1                  C1          D1          E1          
  60.     +2       +5                  +4          +B2*C2                  
  61.     +3       this is a test file for lucid               id conversion
  62.     +4       +RND(5)             +INT(C2)    +SUM(B4:C4)             
  63.     +5       +TBL(B2,C2,B7:D11)  +EXP(B2)    +LOG(C5)                
  64.     +6       +(B2+C2*D2-C5/D5)/(B5)                                  
  65.     +7                           +0          +1000000                
  66.     +8       +2                  -1          -10                     
  67.     +9       +4                  +1          +10                     
  68.     +10      +6                  +2          +11                     
  69.     +11      +8                  +3          +12                     
  70.                                                                      
  71.  
  72.      The listing following is the resulting .DO file which was created from 
  73. this file.
  74.  
  75. >D11:/FD+12
  76. >C11:/FD+3
  77. >B11:/FD+8
  78. >A11:/FD+11
  79. >D10:/FD+11
  80. >C10:/FD+2
  81. >B10:/FD+6
  82. >A10:/FD+10
  83. >D9:/FD+10
  84. >C9:/FD+1
  85. >B9:/FD+4
  86. >A9:/FD+9
  87. >D8:/FD-10
  88. >C8:/FD-1
  89. >B8:/FD+2
  90. >A8:/FD+8
  91. >D7:/FD+1000000
  92. >C7:/FD+0
  93. >A7:/FD+7
  94. >B6:/FD+(B2+(C2*D2)-(C5/D5))/(B5)
  95. >A6:/FD+6
  96. >D5:/FD+@LN(C5)
  97. >C5:/FD+@EXP(B2)
  98. >B5:/FD+@VLOOKUP(B2,B7...D11,@HLOOKUP(C2,B7...D12,5))
  99. >A5:/FD+5
  100. >D4:/FD+@SUM(B4...C4)
  101. >C4:/FD+@INT(C2)
  102. >B4:/FD+(5)*@RAND
  103. >A4:/FD+4
  104. >E3:/FD"id conversion.
  105. >B3:/FD"this is a test file for lucid
  106. >A3:/FD+3
  107. >D2:/FD+B2*C2
  108. >C2:/FD+4
  109. >B2:/FD+5
  110. >A2:/FD+2
  111. >E1:/FD"E1
  112. >D1:/FD"D1
  113. >C1:/FD"C1
  114. >B1:/FD"B1
  115. >A1:/FD"row/colA1
  116.  
  117. NOTE: After you've converted this to a Lotus worksheet file, you have to add 
  118. the following to make the table function operate properly:
  119.  
  120.      cell     entry
  121.      ----     -----
  122.      B12      1
  123.      C12      2
  124.      D12      3
  125.  
  126. Thanks to Phil Wheeler for all his help in getting this program uploaded and 
  127. checked out.
  128.  
  129. Dave Lapinski
  130.