Hi, I am attempting to set the location of two objects (one quad and one text) based on a pair of values in a spreadsheet using datalinq. I have two text objects that are linked to this value. Values are given as x,y pairs so for example: 1600,950.
Everything worked perfectly until I tried to duplicate the code to position the text object as well. When I disable everything related to moving the quad it works. Otherwise, it doesn't even manage to set the the text boxes to the split values. I've spent over 4 hours trying to debug this, so hopefully someone can tell me what I'm doing wrong. Please let me know if I can do anything more to clarify.
I've attached my code and a screen shot that might help.
Dim logoXY as xpTextObject
Self.GetObjectByName ("logoXY", logoXY)
Dim logoX as xpTextObject
Self.GetObjectByName ("logoX", logoX)
Dim logoY as xpTextObject
Self.GetObjectByName ("logoY", logoY)
Dim coords as array
coords = split(logoXY.Text,",")
Dim LOGO as xpQuadObject
Self.GetObjectByName ("LOGO", LOGO)
Dim dateXY as xpTextObject
Self.GetObjectByName ("dateXY", dateXY)
Dim dateX as xpTextObject
Self.GetObjectByName ("dateX", dateX)
Dim dateY as xpTextObject
Self.GetObjectByName ("dateY", dateY)
Dim coords2 as array
coords2 = split(dateXY.Text,",")
Dim dateline as xpTextObject
Self.GetObjectByName ("dateline", dateline)
logoX.Text = coords(0)
logoY.Text = coords(1)
LOGO.PosX = coords(0)
LOGO.PosY = coords(1)
dateX.Text = coords2(0)
dateY.Text = coords2(1)
dateline.PosX = coords2(0)
dateline.PosY = coords2(1)
