Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Odbccp32
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Odbccp32
Miscellaneous
Thread ID:
00886660
Message ID:
00886660
Views:
45
i am trying to use odbccp32.dll in vfp8 to compact an access database using the following code but i don't get an option to pack as it returns a 0 all the time. any ideas much appreciated.

DECLARE short packingaccess in odbccp32.dll Integer, Integer, String, String
lcFile = "D:\company\userdb.mdb"

IF packingaccess(0,1,"Microsoft Access Driver (*.mdb)","COMPACT_DB= " + lcFile)=0
messagebox(fail)
else
messagebox(success)
Endif

Slán
~M
Go raibh maith agat

~M
Next
Reply
Map
View

Click here to load this message in the networking platform