Informix 4GL function
Posted in 1999
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL
I am a newbie in INformix 4GL programming. I need a function which converts an ascii number to its relative CHAR. Also want to know how to get the successor of a CHAR, such as returning 'B' if giving 'A'. Sorry for such simple questions. Thanks ‰ Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.
maronq@my-deja.com wrote: > > I am a newbie in INformix 4GL programming. I need a function which > converts an ascii number to its relative CHAR. Also want to know how to > get the successor of a CHAR, such as returning 'B' if giving 'A'. > Sorry for such simple questions. > Thanks DEFINE val INTEGER, new_char CHAR(1) LET val = ORD( "A" ) LET new_char = ASCII (ORD( "A" ) + 1 ) Art S. Kagel
main define c char call x(65) returning c display c end main function x(i) define i smallint return ascii(i+1) end function <maronq@my-deja.com> wrote in message news:7r73k3$f5k$1@nnrp1.deja.com... > I am a newbie in INformix 4GL programming. I need a function which > converts an ascii number to its relative CHAR. Also want to know how to > get the successor of a CHAR, such as returning 'B' if giving 'A'. > Sorry for such simple questions. > Thanks > ‰ > > > Sent via Deja.com http://www.deja.com/ > Share what you know. Learn what you don't.