无论何时,只要相关,总是可以用一个windows函数调用来代替Access Basic代码执行同一个操作。这样你将节省开发时间,因为windows函数调用是已经完成编码并经过优化,同时也因为它们是用C语言编写的(机器可执行),而Access Basic代码则要被编译成P代码形式,同时需要在执行时一行一行地解释。一个最普通的例子是custom.ini设置。你可以使用Access Basic文件函数去得到一个自由文件指针,打开文件,读/写文件,然后关闭它。但是如果你完全可以简单地使用GetPrivateProfileString和WritePrivateProfileString函数来实现,它们既快且已经编码优化随手可用,你为什么还要自寻烦恼呢?(参考:“Enhanced Microsoft Access: Using the Win16 API”)
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn