[AccessD] vbNull = 1

Stuart McLachlan stuart at lexacorp.com.pg
Wed Jan 21 16:43:19 CST 2004


On 21 Jan 2004 at 10:51, Charlotte Foust wrote:

> 
> Thanks!
> I had forgotten vbNull is related to VarType() ... that explains.
> 
> Then I guess this guy is slightly off track abusing our constants but he
> managed to confuse me:
> 
>   http://www.imt.net/~joe/matt/program/vb/HOWTOs/ShellExecuteAPI/
> 
> /gustav
> 

He's *completely* off track with this:
ShellExecute(vbNull, "", strProgram, "", "", SW_SHOWNORMAL)

hWnd should be the parent window for the called application. This 
window receives any message boxes that an application produces. It 
should either be the main window of the calling application or 0  
(certainly not 1). 

I'd guess he tried to use Null originally and it didn't work so he 
tried vbNull and found that it did work.



 
-- 
Lexacorp Ltd
http://www.lexacorp.com.pg
Information Technology Consultancy, Software Development,System 
Support.





More information about the AccessD mailing list