Odd scripting problem

ard jonker ard.jonker at xs4all.nl
Sun Mar 13 01:10:49 EST 2016


> On 13 Mar 2016, at 03:10, George Handley <ghandley at kc.rr.com> wrote:
> 
> I’m having a scripting problem that no matter what I do, will not work… anymore. 
> It used to work with 584, but now with 625 and 627, one way I write it tells me that it “Can’t turn Mr. & Mrs. Handley” into a boolean. If I write it the way below, it tells me:
>  “OAS Error -2741: Expecting a “then”, etc. but found unknown token.” 

Hi George,
in the spirit of "give a man a fish and he'll eat for a day":
I would copy the code to a separate script to copy from and then cut back and piecewise test the original code.
At first, don't fetch the content of the fields but fill in Arivee using a string constant.
Then slowly add more code to see where AS starts complaining.
Finally if the ifthenelses work, put the code back in that fills the Arivee string using the get unit property.

This way you can check if it is your code or it is strange characters somewhere. (and no, I don't fish and yes, I too often oversee the obvious).


Cheers,
Ard


More information about the XTensionList mailing list