Hi,
I have this issue I am trying to figure out.
I have created a page, that serves as a template for all the other pages.
In that page, called "Mal" I have placed a paragraph called currentpagetext.
I use "Mal" as a page that all other pages inherit page properties and objects from.The plan is that it should show the current page the user is on.
Like if you click on the News button, it should read News. If you click on the product button it should read Product.
I try to use the following code in the button for News on the "Mal" page.
Page.Jump("Nyheter");
pic="AutoPlay\\Images\\blank.png";
Image.Load("productImage",pic);
Paragraph.SetText("currentpagetext","News");
I have also tried with a global variable, but when I try to update the Paragraph.SetText, it comes back with an error message saying that I can only use text in this function.
I made some functions in my global functions like this:
function setcurrentpage(pagename)
currentpage= pagename;
end
function getcurrentpage()
return currentpage;
end
----
If I try to change my button code to:
Page.Jump("Nyheter");
pic="AutoPlay\\Images\\blank.png";
Image.Load("productImage",pic);
setcurrentpage("News");
text=getcurrentpage();
Paragraph.SetText("currentpagetext",text);
then the error message appear.
What am I doing wrong here?

