Four Stars

Regarding tsetglobal variable - how it is working

Hi

      Anybody can explain me about this tsetglobal variable , like how it is working and what is the output of this functions. 

initially i set in tglobalvariable as : "count"=0

 

((integer)globalmap.put("count",((integer)globalmap.get("count"))+1));

 

3 REPLIES
Six Stars

Re: Regarding tsetglobal variable - how it is working

tSetGlobalVar is just for setting values in the globalMap.

You can use tSetGlobalVar to set your variable "count" to 0 initially, and later you can access the variable using globalMap.get("count"). 

- JG
Four Stars

Re: Regarding tsetglobal variable - how it is working

thank you for your reply,

 

Ya i know how to use this , but i don't know how it is working and what will be the output.

get part will it work first or put part will it work first............?can you show along with the output

Four Stars

Re: Regarding tsetglobal variable - how it is working

Hi,

have u used this function before......................if yes than what will be the output of this functions.

 

 

((integer)globalmap.put("count",((integer)globalmap.get("count"))+1)); what it will return when i assigned this to a variable in tmap.