Solved

how to store path in databse file

Posted on 2013-05-20
2
391 Views
Last Modified: 2013-05-21
Hi All:
I'm trying to insert or update the logo file path in a database field. the syntax as following
update geninfo SET logo = "C:\logo.bmp";
its running Ok, but the value of this field='C:logo.bmp'.
where is the backslash??????
0
Comment
Question by:khaled salem
2 Comments
 
LVL 12

Accepted Solution

by:
jmcmunn earned 500 total points
ID: 39183073
Often, '\' is an escape character.  Have you tried doubling it up?

e.g. - C:\\logo.bmp
0
 
LVL 26

Expert Comment

by:Sinisa Vuk
ID: 39183448
...from code:
...
sSQL := 'update geninfo SET logo ='+QuotedStr(sImgPath);
qry.SQL.Text := sSQL;
...

Open in new window

0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question