How To Read A Global Data Field Within A Vb Script Follow

0
Avatar
Legacy Poster

I have a library of roughly 40-50 labels, each with a rather involved VB script embedded.  Within this script I reference several databases.  Unfortunately, the databases are about to be moved, but the date is still unknown. 

 

I created a Global Data Field, DBServer, in which I put the server name and intend on using this value for the database path. 

 

I have run into an issue, though.  How do I go about reading this field within the VB script?

2 comments

0
Avatar
Ian Cummings
Moderator
Comment actions Permalink

Create a new, named data source, choose the type to be a global data field and select your value.  Your VB script may then reference the global value via the named data source that links to it.

0
Avatar
Legacy Poster
Comment actions Permalink

Worked like a charm!  Thank you!

Please sign in to leave a comment.