Solved

how to store path in databse file

Posted on 2013-05-20
2
373 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:khaledsalem
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 25

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video discusses moving either the default database or any database to a new volume.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now