Author Topic: How to terminate VB script  (Read 5385 times)

alexd

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
  • Headshot!
    • View Profile
How to terminate VB script
« on: October 15, 2010, 01:32:42 am »
Hi all,
I have a some VB Script (in Scripter) ... and I need a terminate a script within condition such as:
IF a = b THEN
   ' terminate now!
END IF

I could not find the right statement in the incredibly poor documentation  >:(.

Any idea?
What's this world coming to?

Luis J. Lobo

  • EA User
  • **
  • Posts: 252
  • Karma: +0/-0
  • IT Consultant
    • View Profile
Re: How to terminate VB script
« Reply #1 on: October 15, 2010, 02:40:25 am »
Maybe...

Exit Sub

...statement. Try them. The VB Script documentation is "out of range" of EA.

EA supports VB scripting, but I think that the VB syntax is not responsability of Sparx. Search in google for "VB Script syntax".

See http://www.devguru.com/technologies/vbscript/quickref/vbscript_list.html
« Last Edit: October 15, 2010, 02:43:11 am by Deiser »

alexd

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
  • Headshot!
    • View Profile
Re: How to terminate VB script
« Reply #2 on: October 15, 2010, 08:35:54 pm »
Yes, i know that VB sntx is over scope of Sparx help. But I still think he's entitled to my dissapointment of sparx help. Specifically, help for scripting. You ever tried to find details of the Session class? Or DiagramLink class?
Quote
Read only. A list of DiagramLink objects, each containing information about the display characteristics of a connector in a diagram.
Where is help for DiagramLink?  :(
What's this world coming to?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13379
  • Karma: +563/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to terminate VB script
« Reply #3 on: October 16, 2010, 12:54:21 am »
here

Geert

alexd

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
  • Headshot!
    • View Profile
Re: How to terminate VB script
« Reply #4 on: October 16, 2010, 02:04:15 am »
Yap ... I see that. Sorry, wrong chm.
What's this world coming to?