这里的一段程序是从connectionstring复制的,但最后一句出现的错误我解决不了,
请指点:
procedure TForm4.FormCreate(Sender: TObject);
var
s,path:string;
begin
s:=extractfilepath('companydp');
path:=s+'/companyadb.mdb';
Form1.ADOConnection1.open('Provider=Microsoft.Jet.OLEDB.4.0;'+
'Data Source:=path;'+
'Extended Properties="";'+
'Jet OLEDB:Compact Without Replica Repair=False;'+
'Jet OLEDB:Create System Database=False;'+
'Jet OLEDB
atabase Locking Mode=1;'+
'Jet OLEDB
atabase Password="";'+
'Jet OLEDB:Encrypt Database=False;'+
'Jet OLEDB:Engine Type=5;'+
'Jet OLEDB:Global Bulk Transactions=1;'+
'Jet OLEDB:Global Partial Bulk Ops=2;'+
'Jet OLEDB:New Database Password="";'+
'Jet OLEDB:Registry Path="";'+
'Jet OLEDB:SFP=False;'+
'Jet OLEDB:System database="";'+
'Locale Identifier=1033;'+
'Mode=share Deny None;'+
'Password="";'+
'Persist Security Info=False;'+
'User ID=Admin;'+
'Jet OLEDB
on't Copy Locale on Compact=False' [Error] Unit4.pas(83): Unterminated string
);
[Error] Unit4.pas(83): There is no overloaded version of
'Open' that can be called with these arguments
[Error] Unit4.pas(83): Incompatible types
[Error] Unit4.pas(83): Unterminated string
end;