All the members of xpDataLinq object that are read-write can be modified by script and the changes are taken into account
but ... the Value member will not be updated at once ( you have to wait many frames to get the value updated ! )
So changing datalinq members in a script to get more than one value will not work : Value won't be updated
For example , "MyText" object is bound to a Excel Datalinq that contains a column with "Player 1" , "Player 2" , ...
In the following script :
dim txtObj as xpTextObject
Dim str as string
Scene.GetObjectByName("MyText",txtObj)
str = "row " + txtObj.Datalinq.Row.ToString() + " : " + txtObj.Datalinq.Value 'get current row number and Value associated
txtObj.Datalinq.Row = txtObj.Datalinq.Row + 1 ' Go to next Row
str = str + vbNewLine + "row " + txtObj.Datalinq.Row.ToString() + " : " + txtObj.Datalinq.Value 'get again current row number and Value associated
str will be :
[FONT=courier new]row 1 : Player 1
row 2 : Player 1[/FONT]
"MyText" object will display "Player 2" in the next rendered frames.
#XPression