check if variable is set

  • Thread starter Thread starter Question Boy
  • Start date Start date
Q

Question Boy

how can I validate if a variable is set in my code?

set olApp = ....

How can i check that this line ran properly and actually set the variable?

IsNull, IsEmpty,Ismissing,... what should I use in this case?

QB
 
IsEmpty(), I believe.

IsMissing is only for arguments and I'm pretty sure IsNull doesn't work in
this case


--
Jack Leach
www.tristatemachine.com

- "First, get your information. Then, you can distort it at your leisure."
- Mark Twain
 
how can I validate if a variable is set in my code?

set olApp = ....

How can i check that this line ran properly and actually set the variable?

IsNull, IsEmpty,Ismissing,... what should I use in this case?

QB

Try

Is Nothing
 
Question said:
how can I validate if a variable is set in my code?

set olApp = ....

How can i check that this line ran properly and actually set the variable?

IsNull, IsEmpty,Ismissing,... what should I use in this case?


Try:
olApp Is Nothing
 
Back
Top