Global Variable question:  [SOLVED]

Questions about MultiCharts and user contributed studies.
arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Global Variable question:  [SOLVED]

Postby arjfca » 24 Aug 2014

Hello

I use a lot the Global Variables functions over the years and strangely these start to returned wrong data when I applied them on new code

The code is use in a function

Code: Select all


GVSetNamedInt("ShowLastPriceCounter",0);
cmp = GVGetNamedInt("ShowLaasstPriceCounter",9999);
print ("2_ Cmp ", cmp);
Alway return 9999 , the error code?

Martin

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Global Variable question:

Postby TJ » 24 Aug 2014

GVSetNamedInt( "ShowLastPriceCounter" , 0 );
cmp = GVGetNamedInt( "ShowLaasstPriceCounter" , 9999 );
print ("2_ Cmp ", cmp);
can you see the 9999 ?


Return to “MultiCharts”