Board index » delphi » Strange characters hidden in memo field

Strange characters hidden in memo field

I am using a memo field in an Access 97 table to hold sql strings.  I load
these into an sql component at run time using a dbmemo field and an  asign
statement.  Sometimes the sql statement does not work and I get odd error
messages.

I have discovered by looking at the result of assigning the memo field to a
string that the following characters are being inserted in my sql statement
'#$D#$A' and are causing the problem.

Any ideas what may be happening ?

Anthony

 

Re:Strange characters hidden in memo field


The #$D#$A characters aren't strange at all. They are in practice "End of
Line" marker for each line.

Re:Strange characters hidden in memo field


Quote
"AFM" <t...@alltech.co.uk> wrote in message news:3bbb2c3f$1_1@dnews...
> I am using a memo field in an Access 97 table to hold sql strings.  I load
> these into an sql component at run time using a dbmemo field and an  asign
"AFM" <t...@alltech.co.uk> wrote in message news:3bbb2c3f$1_1@dnews...
> I am using a memo field in an Access 97 table to hold sql strings.  I load
> these into an sql component at run time using a dbmemo field and an  asign
> statement.  Sometimes the sql statement does not work and I get odd error
> messages.

> I have discovered by looking at the result of assigning the memo field to
a
> string that the following characters are being inserted in my sql
statement
> '#$D#$A' and are causing the problem.

> Any ideas what may be happening ?

> Anthony

Re:Strange characters hidden in memo field


o.k.
Quote
"AFM" <t...@alltech.co.uk> wrote in message news:3bbb2c3f$1_1@dnews...
> I am using a memo field in an Access 97 table to hold sql strings.  I load
> these into an sql component at run time using a dbmemo field and an  asign
> statement.  Sometimes the sql statement does not work and I get odd error
> messages.

> I have discovered by looking at the result of assigning the memo field to
a
> string that the following characters are being inserted in my sql
statement
> '#$D#$A' and are causing the problem.

> Any ideas what may be happening ?

> Anthony

Other Threads