Re: ASCII character in a string
Posted in 1998
benhen@hotmail.com wrote: > > Hi there, > > I use Informix OL 7.24 and I want to insert an ASCII character in a string. > For example : > > define v_str char(50); > let vs_str = "Hello \\012 \\0x7D"; > > In this example who looks like C syntax, I want to insert > the octal character 12 and the hexadecimal character 7D. > > Does anybody knows how to do that ? > Any idea or workaround are more than welcome ! > > TIA > > Ben > > -----== Posted via Deja News, The Leader in Internet Discussion ==----- > http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum You can do this in Informix 4GL like this: define v_str char(50) let v_str = "Hello", ascii 12, ascii 125 -- Peter Lancashire Information Systems Specialist, Bayer plc Eastern Way, Bury St Edmunds, Suffolk, IP32 7AH, UK Tel: +44-1635-562258, Fax: +44-1635-562281 --- If all else fails, read the instructions AND the release notes. All opinions are my own and not those of Bayer plc. My Internet plumbing does not allow me to mail and post news together. Sorry. --- Join Infuse, the UK Informix User Group at http://www.infuse.org.uk/