Global Variable use in Excel: Strange behavior

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

Global Variable use in Excel: Strange behavior

Postby arjfca » 11 Jul 2013

Hello

I use Global Variable to pass information between Excel and MC

My problem is with the Excel version, when I want to erase a string from a GV_NamedString using a nil string ("") , only the first character is erased

EX in Excel
ac = GVSetNamedString ("GVTEST1", "This is a test")
Astring = GVGetNamedString ("GVTEST1", "Error1")

Astring = "This is a test"

Now, I want to erase the string value
ac = GVSetNamedString ("GVTEST1", "")
Astring = GVGetNamedString ("GVTEST1", "Error1")

Astring = "his is a test"

Only the first character as been erased. Now the string = "his is a test", the "T" is missing

This problem occur only in Excel. Global variable work perfectly in MC

Any information appreciated
Martin

Return to “MultiCharts”