3个回答
展开全部
调用函数IsUseful即可,例:
MsgBox IsUseful("C:\1.bmp") '若有效就显示True,否则显示False
private function isuseful(picpath as string) as boolean
on error goto er
isuseful = true
dim p as stdpicture
set p = loadpicture(picpath)
set p = nothing
exit function
er: isuseful = false
end function
MsgBox IsUseful("C:\1.bmp") '若有效就显示True,否则显示False
private function isuseful(picpath as string) as boolean
on error goto er
isuseful = true
dim p as stdpicture
set p = loadpicture(picpath)
set p = nothing
exit function
er: isuseful = false
end function
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询