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