Re: Control characters
Posted in 1995
BEWARE: It's Friday night, I've had a few beers, and I can be appallingly obnoxious under such circumstances: In article <3ng850$fh9@cssun.mathcs.emory.edu>, kmart!jregep@uunet.uu.net wrote: > > >I want to use this in ESQL. > > Will this do it for you? No. He said ESQL. > > main > define > cntrl_a, > cntrl_b, > # . > # . > # . > cntrl_y, > cntrl_z char(1), Also, when you find yourself repeating the same bit of code 26 times in a single program it's probably time to consider using a FUNCTION, or in your example an ARRAY. [snip] > let cntrl_a = ascii(1) > let cntrl_b = ascii(2) > # . > # . > # . > let cntrl_y = ascii(25) > let cntrl_z = ascii(26) [snip] > case > when (input_txt = cntrl_a) > let type_char = "cntrl-a" > > when (input_txt = cntrl_b) > let type_char = "cntrl-b" > > # . > # . > # . > > when (input_txt = cntrl_y) > let type_char = "cntrl-y" > > when (input_txt = cntrl_z) > let type_char = "cntrl-z" Regards, Kerry S --------------------------------------,------------------------------------- Kerry Sainsbury, kerry@kcbbs.gen.nz | THE INFORMIX FAQ Quanta Systems, Auckland, New Zealand | kcbbs.gen.nz:/informix/* | mathcs.emory.edu:/pub/informix/faq/* +64 9 377-4473 (work) 279-3571 (home) | http://www.garpac.com/informix.html