Håkan,
I have no idea what it is that it doesn't want to work on your end beyond my earlier suggestions.
But to indicate that it works fine in another workspace, here's my test workspace (DataFlex 19.1)
It is the same workspace as I uploaded to the DataFlex wiki for the GoogleCharts demo, so you can compare the differences with that.
I basically just copied and pasted what Henry told me to do, then simplified it a bit and made it closer to what you are doing, to see if I could make it fail. But it worked the first time and just kept on working.
Perhaps you can figure out the differences with your workspace by either bringing your code over to this one, or by using a comparing tool such as beyond compare to see what is different.
Good luck!
--
Wil