Guy Jennings wrote:
>
> We ran into a problem while trying to use a string field
> in a record to hold a "printf" format string to control the
> characters sent to a serial device.
>
> We wanted to be able to put octal escaped characters into
> the field value, along the lines:
>
> FIELD(SEL, "\23%2.2d\n")
>
> However, when the database attempts to load, we get a syntax
> error message from dbLoadRecords.
>
> It seems that the parser in dbLoadRecords does not expand
> escape sequences within quoted strings. Can anyone think
> of a way around this limitation?
Thanks to Noboru Yamamoto from KEK the beta11 release
of 3.13 supports escape sequences. The beta11 version
of the Application Developer's guide gives details.
see page 27 (Chapter Database Definition, Section general Rules).
Marty Kraimer
- References:
- Special characters in strings loaded by dbLoadRecords Guy Jennings
- Navigate by Date:
- Prev:
Special characters in strings loaded by dbLoadRecords Guy Jennings
- Next:
Re: IOC hangs (no more) Ralph Lange
- Index:
1994
1995
1996
<1997>
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Special characters in strings loaded by dbLoadRecords Guy Jennings
- Next:
VxWorks patch file Bakul Banerjee
- Index:
1994
1995
1996
<1997>
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|