Board index » delphi » Checking for unassigned OleVariant type

Checking for unassigned OleVariant type

Hi,

If a variable of type OleVariant is unassigned how do check this?

I tried with "s" being unassigned Olevariant:

if s = Unassigned then - exception
if s = null then - exception

Any ideas?

Thanks, Joe

 

Re:Checking for unassigned OleVariant type


Found it!, it's VarIsEmpty() function

Quote
"Joe" <J...@IntelcomNoSpam.si> wrote in message

news:6tmk8.1530$a%.49301@news.siol.net...
Quote
> Hi,

> If a variable of type OleVariant is unassigned how do check this?

> I tried with "s" being unassigned Olevariant:

> if s = Unassigned then - exception
> if s = null then - exception

> Any ideas?

> Thanks, Joe

Other Threads