Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Maybe a stupid issue...Memory tables in C++ builder
Mon, Sep 4 2006 5:23 AMPermanent Link

Jacob
I am having a problem which is fairly simple, though I cannot workaround the problem.

I need a SELECT * INTO "\Memory\Whatever" FROM table statement in my code.

Problem is that in C++ builder, my strings are used with " character, so I am using this statement:

query->SQL->Add("SELECT * INTO \"Memory\alarms\" FROM alarms_log");

Maybe my C knowledge is pretty bad, but I am having problems with errors using this sentence.

Please, any clues will be welcomed.

Regards.
Mon, Sep 4 2006 5:53 AMPermanent Link

Jacob
Oh, I´m so sorry...

I forgot the double slash in the middle of the sentence.

\"Memory\\Table\"

Sorry for that...
Mon, Sep 4 2006 9:24 AMPermanent Link

Julio Saucedo

This should work:

sql = "SELECT * INTO \34\\Memory\\alarms\\\34 FROM alarms_log";

/*
  The \\ represents \ in the string
  The \34 represents the " character in the string
*/

Regards.

Julio C. Saucedo
Mon, Sep 4 2006 9:38 AMPermanent Link

This message was cancelled from within Mozilla.
Image