Book a Demo

Author Topic: Set selected methods to inline  (Read 3379 times)

lehpat

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Set selected methods to inline
« on: March 15, 2013, 08:56:42 pm »
In EA 9.3.932 I wrote the following VB-Scirpt
Code: [Select]
sub OnProjectBrowserScript()
      
      ' Get the type of element selected in the Project Browser
      dim selectedArray as EA.Collection
      selectedArray= Repository.GetTreeSelectedElements
      dim selectedItem
      For each selectedItem in selectedArray
            dim treeSelectedType
            treeSelectedType = Repository.GetTreeSelectedItem (selectedItem)
            If selectedItem.Type = otMethod then
                  dim method as EA.Method
                  method = selectedItem
            end if
      Next
End Sub      
      
1. Unfortunately an error says, that the argument is not optional. The error refers to the line
Code: [Select]
selectedArray= Repository.GetTreeSelectedElementsI did not found a description for arguments of that method.

2. I did not find an atttribute for inline. How can I change the inline property?

Can anyone help?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Set selected methods to inline
« Reply #1 on: March 15, 2013, 10:15:37 pm »
The same with V10. I suppose this is a bug as per documentation this method has no parameters. I tried supplying a couple of integers but that resulted in even stranger error messages.

Report a bug - see link at bottom right of this page.

q.