Author Topic: VBScript view variable contents  (Read 1987 times)


  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
VBScript view variable contents
« on: August 30, 2018, 11:52:08 pm »
I've created a variable within a script and I wish to be able to view the information stored under that variable, is there a way to do that?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 11852
  • Karma: +460/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: VBScript view variable contents
« Reply #1 on: August 31, 2018, 02:23:05 am »
If you debug the script you can use the "Local Variables" window to inspect these.

Alternative is to print them using Session.Output


David Rains (bioform)

  • EA User
  • **
  • Posts: 83
  • Karma: +0/-0
    • View Profile
Re: VBScript view variable contents
« Reply #2 on: September 03, 2018, 09:41:21 am »
And if you need that value within your model, you could store that it in a tagged value associated with the element or association it has some context to...

I often use tagged value as containers for metadata that is derived via scripts an example might be the "completeness of the specification" of one of my elements... (say from a scale of -1 to 4 or an enumeration of n/a, not started, incomplete, acceptable, completed; then using a shape-script altering the elements color or other adornment visually to indicate the status...)