home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / database / 6737 < prev    next >
Encoding:
Text File  |  1992-09-15  |  3.0 KB  |  60 lines

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!sybus.sybus.com!myrddin!pdn!news
  3. From: nelson@paradyne.com (Bill Nelson)
  4. Subject: Clipper Questions from a Constipated Programmer
  5. Message-ID: <1992Sep15.133841.12900@pdn.paradyne.com>
  6. Sender: news@pdn.paradyne.com (News Subsystem)
  7. Nntp-Posting-Host: doppler
  8. Organization: AT&T Paradyne, Largo, Florida
  9. Date: Tue, 15 Sep 1992 13:38:41 GMT
  10. Lines: 48
  11.  
  12.  
  13. I have a couple of questions about clipper in which I am entrusting to the wit and wisdom
  14. of the net.  Please be gentle, I am but an amateur at this.
  15.  
  16. Question #1
  17. -----------
  18. Lines of text that I display on row 0 of the screen (using the @/say command) seem to be 
  19. overwritten by blanks at about column 60.  Since this is the place that clipper displays
  20. such things as "INS" (when the insert key is on) or the date, I can only assume that it 
  21. is this which is overwriting my text (or is this an unwritable portion of the screen?).
  22.  
  23. Is there any way that I can disable this and allow a full line of output to go to row 0
  24. or do I simply need to begin writing text at row 1?
  25.  
  26. Question #2
  27. -----------
  28. I have written a program where there are several times in which I am accessing the same
  29. variables (or at least the same variable names).  This seems to use up quite a bit of 
  30. memory.  Is there some way I can declare variable names in one common place and simple
  31. call them into being when I set them to some value?  Note: I do not want these variables
  32. to be global to all the routines in the program since I do not want to carry over "old" 
  33. values entered in from some previous routine. 
  34.  
  35. Question #3
  36. -----------
  37. I have created a database which contains several numeric values (prices) and is accessed
  38. by a stock number.  My program is such that when the user wants access these prices, he
  39. enters in the stock number and the prices are displayed.  Just lately these prices have 
  40. started being displayed incorrectly.  It seems as if the values for *some* of the items 
  41. (not all of them) are being rounded to 2 digits.  What could be causing this?  I am using
  42. the "TRANSFORM" function to ensure the size of the output (i.e.  transform(price,"9999.99"))
  43. could it be somehow rounding *some* of the prices or should I look elsewhere?
  44.  
  45. Question #4
  46. -----------
  47. I am trying to make my program as fast and space efficient as possible (who isn't).  One of
  48. my programs is running on an XT and is slow as molasis (as my son would say - No Duh!).  I 
  49. have tried making the code reusable and as sleek as possible, but is still runs pretty slow.
  50.  
  51. What kind of considerations should I take into account in my programming?  Could someone
  52. provide a sort of checklist in which could be accessed to ensure certain steps are taken 
  53. to obtain optimum code?
  54.  
  55. --
  56. *****************************************************************************
  57. Bill Nelson   *    AT&T Paradyne        * Internet: nelson@pdn.paradyne.com * 
  58.               *    Largo, FL            *************************************
  59.               *    (813) 530-8696       *   Opinions are mine, not AT&T's   *
  60.