Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

Not applicable

Detecting if a field is defined in VBScript?

I'm trying to detect if a field is defined in a document in a VBScript macro but I don't see any obvious predicate or test to do so.

For example, if I retrieve a field like this:

set kaboom = ActiveDocument.Fields("DOESNOTEXIST")

Then kaboom is not null, is not empty and is an object.

So would do I test if ActiveDocument.Fields returns a real field in the document?

Thanks,

Andrew Warinner

Tags (2)
2 Replies
mwoolf
Honored Contributor II

Re: Detecting if a field is defined in VBScript?

Maybe you can use the system field $Field.

Not applicable

Re: Detecting if a field is defined in VBScript?

Yes, that looks like it will do the trick.

Thanks!

AW