how to store path in databse file

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??????
khaled salemSoftware DeveloperAsked:
Who is Participating?
jmcmunnConnect With a Mentor Commented:
Often, '\' is an escape character.  Have you tried doubling it up?

e.g. - C:\\logo.bmp
Sinisa VukCommented:
...from code:
sSQL := 'update geninfo SET logo ='+QuotedStr(sImgPath);
qry.SQL.Text := sSQL;

Open in new window

All Courses

From novice to tech pro — start learning today.