Author Topic: Changing an element type and stereotype using JavaScript  (Read 7429 times)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13240
  • Karma: +554/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Changing an element type and stereotype using JavaScript
« Reply #30 on: July 17, 2024, 06:44:30 pm »
Autocomplete and strong typing are two different things.

var currentElement as EA.Element;
Doesn't make your currentElement strong typed. It only enables the autocomplete in the code editor.
(at least for VBScript. I'm not 100% sure that applies to Javascript as well)

Geert

Modesto Vega

  • EA Practitioner
  • ***
  • Posts: 1077
  • Karma: +28/-8
    • View Profile
Re: Changing an element type and stereotype using JavaScript
« Reply #31 on: July 17, 2024, 10:21:34 pm »
Thank you Geert, I'll rather not start a strongly vs weakly type thread here.

From your reply, I am concluding that you are confirming that without
Code: [Select]
var currentElement as EA.Element;the code editor will not be able to auto-complete. Is that correct?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13240
  • Karma: +554/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Changing an element type and stereotype using JavaScript
« Reply #32 on: July 17, 2024, 11:52:54 pm »
Thank you Geert, I'll rather not start a strongly vs weakly type thread here.

From your reply, I am concluding that you are confirming that without
Code: [Select]
var currentElement as EA.Element;the code editor will not be able to auto-complete. Is that correct?
Yes, that's what I meant.

Geert

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1309
  • Karma: +120/-10
  • Its the results that count
    • View Profile
Happy to help
:)