I'm green to scripting and trying to dive into it. We receive our quarter status as a single digit (ie. 2) and would like to have it displayed as 2nd QTR. I am trying my hand at a simple if then script to get this result. Below is the code i'm using on a text object that is hidden and receiving the value from the datalinq. STATUS OUTPUT is a text object displaying the status "1st QTR."
Can someone help point me in the right direction? Also, I am not sure the difference between 'Scene' and 'Self when used to GetObject. Is the use of 'status' after the comma directing the "STATUS OUPUT" layer to the variable status?
dim status as xpTextObject
scene.GetObjectByName ("STATUS OUTPUT", status)
If Text = "1" then
status.Text = "1st QTR"
end if
Thanks in advance for the help with my confusion. If anyone knows of good literature or tutorials to help with scripting, i'd appreciate that as well.