Forum Discussion

lokithorshield's avatar
lokithorshield
Contributor
11 years ago
Solved

Hi I am trying to design a framework by creating a common function. what I want is store the Aliases

Hi I am trying to design a framework by creating a common function. what I want is to store the Aliases or name mapped variables in an excel and retreive it. Use them to pass as a common variable and perform an action like click or something.  when i store the aliases in a variable and pass to another function its not working, is there any way to achieve this.

  • How do use those variables?

    If you using just as variables it may not work, since variables does not have click (or what ever) method you would like to performe.

    you may use eval method...

     eval('Fully qualified object name') would return the object.

  • If you're working in VB, you can also use Set

     

    set mylocalvariable = myexcelstring1

     

    mylocalvariable will now be the object you want

3 Replies

  • NisHera's avatar
    NisHera
    Valued Contributor

    How do use those variables?

    If you using just as variables it may not work, since variables does not have click (or what ever) method you would like to performe.

    you may use eval method...

     eval('Fully qualified object name') would return the object.

    • lokithorshield's avatar
      lokithorshield
      Contributor

      Hi !! Yes  I Used EVAL and it works.. Thanks a lot.

       

      This is how I do

      sorry Rally i

  • Marsha_R's avatar
    Marsha_R
    Icon for Champion Level 3 rankChampion Level 3

    If you're working in VB, you can also use Set

     

    set mylocalvariable = myexcelstring1

     

    mylocalvariable will now be the object you want