Why errors between LiveCode 6.1.3 and LiveCode 6.5.0?
Posted: Sun Dec 08, 2013 4:11 pm
Hi,
I did make a stack with 2 cards.
The stack has the following scripts:
Stack Script:
--------------------------------------------------------------------------------------------------------------
global stackHorizontaleLocatie, stackVerticaleLocatie
global stackHorLoc, stackVertLoc
on preOpenStack
set the width of this stack to (item 3 of the working screenrect)*0.8
set the height of this stack to round ((the width of this stack * 9 / 16),0)
put round ((the width of this stack / 2),0) into stackHorLoc
put round ((the height of this stack / 2 + 44),0) into stackVertLoc
set the location of this stack to (stackHorLoc & "," & stackVertLoc)
pass preOpenStack
end preOpenStack
on moveStack horPosLeft, vertPosTop
put round ((horPosLeft +the width of this stack / 2),0) into stackHorLoc
put round ((vertPosTop + the height of this stack / 2),0) into stackVertLoc
set the location of this stack to (stackHorLoc & "," & stackVertLoc)
end moveStack
Card script (for each card)
--------------------------------------------------------------------------------------------------------------
global stackHorLoc, stackVertLoc
on preOpenCard
initCard
end preOpenCard
on resizeStack newWidth,newHeight
initCard
pass resizeStack
end resizeStack
on initCard
set the location of this stack to (stackHorLoc & "," & stackVertLoc)
set the height of this stack to round ((the width of this stack *9 /16),0)
end initCard
--------------------------------------------------------------------------------------------------------------
When I save the stack in LiveCode 6.1.3, close LiveCode 6.1.3, start LiveCode 6.1.3 and open the Stack, it doesn't give any errors.
When I Quit LiveCode 6.1.3 and Open the same stack in LiveCode 6.5.0, I get 2 error messages with the same text:
--------------------------------------------------------------------------------------------------------------
executing at 4:01:05 PM
Type Object: coordinate is not a point
Object card id 1002
Line set the location of this stack to (stackHorLoc & "," & stackVertLoc)
Hint
--------------------------------------------------------------------------------------------------------------
Then, when I save the stack in LiveCode 6.5.0, close LiveCode 6.5.0, start LiveCode 6.5.0 and open the Stack, it doesn't give any errors.
When I Quit LiveCode 6.5.0 and Open the same stack in LiveCode 6.1.3, I get these 2 error messages again with the same text.
Does anyone know why?
Thanks
Joop1943
I did make a stack with 2 cards.
The stack has the following scripts:
Stack Script:
--------------------------------------------------------------------------------------------------------------
global stackHorizontaleLocatie, stackVerticaleLocatie
global stackHorLoc, stackVertLoc
on preOpenStack
set the width of this stack to (item 3 of the working screenrect)*0.8
set the height of this stack to round ((the width of this stack * 9 / 16),0)
put round ((the width of this stack / 2),0) into stackHorLoc
put round ((the height of this stack / 2 + 44),0) into stackVertLoc
set the location of this stack to (stackHorLoc & "," & stackVertLoc)
pass preOpenStack
end preOpenStack
on moveStack horPosLeft, vertPosTop
put round ((horPosLeft +the width of this stack / 2),0) into stackHorLoc
put round ((vertPosTop + the height of this stack / 2),0) into stackVertLoc
set the location of this stack to (stackHorLoc & "," & stackVertLoc)
end moveStack
Card script (for each card)
--------------------------------------------------------------------------------------------------------------
global stackHorLoc, stackVertLoc
on preOpenCard
initCard
end preOpenCard
on resizeStack newWidth,newHeight
initCard
pass resizeStack
end resizeStack
on initCard
set the location of this stack to (stackHorLoc & "," & stackVertLoc)
set the height of this stack to round ((the width of this stack *9 /16),0)
end initCard
--------------------------------------------------------------------------------------------------------------
When I save the stack in LiveCode 6.1.3, close LiveCode 6.1.3, start LiveCode 6.1.3 and open the Stack, it doesn't give any errors.
When I Quit LiveCode 6.1.3 and Open the same stack in LiveCode 6.5.0, I get 2 error messages with the same text:
--------------------------------------------------------------------------------------------------------------
executing at 4:01:05 PM
Type Object: coordinate is not a point
Object card id 1002
Line set the location of this stack to (stackHorLoc & "," & stackVertLoc)
Hint
--------------------------------------------------------------------------------------------------------------
Then, when I save the stack in LiveCode 6.5.0, close LiveCode 6.5.0, start LiveCode 6.5.0 and open the Stack, it doesn't give any errors.
When I Quit LiveCode 6.5.0 and Open the same stack in LiveCode 6.1.3, I get these 2 error messages again with the same text.
Does anyone know why?
Thanks
Joop1943