IN the below code I am expecting to see values '100' for .X and '110' for .Y printed to screen. But I am getting '100' and '0'. Am I trying to do something that is illegal or is it a bug?
// type define question
TYPE locus
X
Y
ENDTYPE
TYPE node
P1 AS locus
P2 AS locus
C1 AS locus
ENDTYPE
nodeLocus AS node
returnValues=function1()
nodeLocus=CreateText("returnValues.P1.X= "+STR(returnValues.P1.X)+", .Y= "+STR(returnValues.P1.Y))
SetTextPosition(nodeLocus,10,50)
SetTextSize(nodeLocus,20)
WHILE exit_=0
ENDWHILE
END
FUNCTION function1()
RET AS node
RET.P1.X=100
RET.P1.Y=110
ENDFUNCTION RET
www.mindsclay.com
lucifermagus.mindsclay.com (not working with Firefox)