Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - lehpat

Pages: [1]
1
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?

2
This does not work, because the line is not filled up with spaces, so the Comment looks like that:

/*----------------------------------------------------------------------------*/

/* Class::Method(Params)  */
/*----------------------------------------------------------------------------*/

/* Description :  foobar  */
/*                                                                                               */
/* Parameter   :  foo  */
...
/*----------------------------------------------------------------------------*/


3
Hi,

in my sepcifications I have to generate comments for methods like that:
/*----------------------------------------------------------------------------*/
/* Class::Method(Params)                                                            */
/*----------------------------------------------------------------------------*/
/* Description :                                                                            */
/*                                                                                               */
/* Parameter   :                                                                           */
...
/*----------------------------------------------------------------------------*/

I got nearly everything working, except that the dynamically created content destroys the alignment of the border. How can I manage to align the */ at the line end?

Pages: [1]