Suppose in 1st Action we had two variables , Can we able to call that variables in Second Action

Showing Answers 1 - 4 of 4 Answers

vamsi

  • Feb 6th, 2007
 

Yes, we can call the variables by that variable as "option Explicit".

Regards,
Vamsi.

  Was this answer useful?  Yes

msusmitha

  • Feb 6th, 2007
 

hihow u call the first function variable to ur 2nd function, declare that variables outside for all the functionsor call second function in the first function itself.FIRST SCENARIOvar a =10var b=20function addres=a+bend functionfunction SUBres=a-bend functionSECOND SCENARIO FUNCTION RESa=50,b=60 res= ADD(a,b)res=sub(a,b)end functioni think u understandmadhav_sus@yahoo.co.in

  Was this answer useful?  Yes

Bhamini

  • Feb 10th, 2007
 

Hi,you can either use Action parameters(output parameters) to pass values between 2 actions. or even better solution is to use environment variables.define 2 environment variables in Settings - > environment tab as user-defined variables.lets call it EnvVarA and EnvVarBin Action 1, you can user statementsEnvironment("EnvVarA") = "variable 1"in action 2, you can use it to retrieve value stored in action1such as x = Environment("EnvVarA")this should help

  Was this answer useful?  Yes

kinnu

  • Mar 1st, 2007
 


u need to add the variables in input parameters in seocond action and output variables in first action.

u can call the 1st action variables in second action by using Variable1 = Parameter.Item("1Variable")

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions