Re: Informix 2.1 challanges
Posted in 1996
Topics: General Discussion
Terry Boyland wrote: > > A major career move has given me the opportunity to work with the new Informix 2.10.03F > and it's accompanying Version 1 RDS (!$%' Not !! ). As you are aware this has some major > advantages like not being able to do the following: > > I wish to use F10 as accept ( No probs here ) > and F3 to leave an input > > Problem is: Because F3 is not accept then it does not see the > data in the current field buffer before exiting. I > am aware of get_fldbuf but it is not available and the > result is that whichever field is the current field > when I hit F3 gets returned to it's original value before > input (usually NULL ). Do you want F3 to accept or interrupt? If accept, then use OPTIONS. If interrupt, then why bother which field you are in or it's contents? Simply discard it. > Additionally I keep getting 4518 errors from the crappy code which has been written. The > manuals from Informix are as usual a guideing light on the subject. What really > causes this ? It cannot be the return statements because all that it being returned are > status codes. Perhaps the number of CALL statements has a limit, or problems with this > product and the memory ? This is a memory leak. Things to look for are: CASE variable WHEN 1 ... change to: CASE WHEN variable=1 ... LET var = var2 USING "###", var3 USING "###&" change to: LET var = var2 USING "###" LET var = var CLIPPED, var3 USING "###&" LET var = var2 USING "###", myfunc() change to: LET var = var2 USING "###" LET var = var CLIPPED, myfunc() Hope that helps, -- Mark. +-------------------------------------------------------------------------+ |Mark D. Stock - The West Solutions Group http://www.west.co.za | | | |mailto:marks@west.co.za +------------------------------------------------+ |Tel: +27 11 803 2151 |If it doesn't work... force it! | |Fax: +27 11 803 2189 |If it breaks... it needed replacing anyway! | |Cell: +27 83 250 2325 |Well, that's how I code anyway! | +------------------------+------------------------------------------------+