Re: Construct (ye olde bouncing mail)
Posted in 1994
In-Reply-To: <2im8oi$94e@ncar.ucar.edu>; from "Eddie Bradford" at Feb 1, 94 6:58 pm > > I'm using the CONSTRUCT to do a query in a 4GL program. I'd like to "pre-load" > the field I'm doing the query on (it's a 10-character CHAR field) with the first > five characters that will probably cover about 95 percent of the retrievals I'll > do, and let the user enter the last five characters or just backspace and > enter the full 10 characters for those other 5 percent of the retrievals. > So far the closest I've gotten to the desired result is a DISPLAY of the > five characters to the field, but that leaves the terminal cursor at the first > position of the field, not positioned at the end of the five characters, where > I'd like it to be. > > All other attempts have come up even shorter. > > Any suggestions appreciated. > (On-line 5.01, 4GL 4.10, SunOS) Unless you write your own input routine I'm afraid there is no way to position the cursor 'down the road'. If you are using 4.10 I believe you can do a CONSTRUCT ... WITHOUT DEFAULTS which uses the current value of the field instead of (if not set) NULL default. (isn't that the way it works?). cheers j. _____________________________________________________________________________ Jack Parker | Hewlett Packard, BSMC Boise, Idaho, USA| So many windows, jparker@hpbs2561.boi.hp.com | so little time. (208) 396-5388 (W) (208) 384-1623 (H) | _____________________________________________________________________________ Any opinions expressed herein are my own and not those of my employers. _____________________________________________________________________________