Variable set?

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

I have a variable like this; private coform As frmContacts. Now I need to
do coform = New frmContacts but only if this has not been done already. How
can I check if coform has been assigned a 'New frmContacts' or not?

Thanks

Regards
 
* "John said:
I have a variable like this; private coform As frmContacts. Now I need to
do coform = New frmContacts but only if this has not been done already. How
can I check if coform has been assigned a 'New frmContacts' or not?

\\\
If coform Is Nothing Then
coform = New frmContacts()
End If
///
 
Back
Top