ODBC.InstallDriver

string ODBC.InstallDriver ( 

string Driver )

Example 1

strResult = ODBC.InstallDriver("Microsoft Access Driver(*.mdb)\\0Driver=odbcjt32.dll\\0Setup=odbcjt32.dll\\0FileUsage=1\\0FileExtns=*.mdb\\0APILevel=1\\0ConnectFunctions=YYN\\0DriverODBCVer=02.50\\0SQLLevel=0\\0\\0");

if strResult == "" then
    Dialog.Message("ERROR", "The driver was not installed");
else
    Dialog.Message("SUCCESS", "The driver was installed to " .. strResult .. ".");
end

Installs the Microsoft Access ODBC driver to the user's system.

See also:  Related Actions