Book a Demo

Author Topic: How to read function parameters Using VbScript  (Read 7526 times)

SyedJunaid

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
How to read function parameters Using VbScript
« on: November 17, 2021, 10:49:49 pm »
         dim theMethod as EA.Method
         dim Ranges as EA.Method
         dim containers as EA.Method
         set theMethod = Repository.GetTreeSelectedObject()
         
         containers = theMethod.Notes
         
         Msgbox "The name of selected Method is: " & theMethod.Name
         
         Msgbox "Content in Notes ealier" & container
         
         
         
         'code for reading parameters
         dim str1 as EA.Method
         'dim str1 as EA.Parameter (used this line as well) commented now
         dim str2 as EA.Method
         'dim str2 as EA.Parameter (used this line as well) commented now
         
         dim temp as EA.Method
         set temp = Repository.GetTreeSelectedObject()
         dim catch as EA.Method
         'dim catch as EA.Parameter (used this line as well)  commented now
         catch = temp.Parameters.GetByName(str1.Name,str2.Name)

Input : FUNC(Std_ReturnType, CDD_XCP_CODE)

expected output: Std_ReturnType, CDD_XCP_CODE

Output:
getting this error:::::::::::::

object required: 'temp.parameter'