February 24, 200718 yr Is is possible to insert a "get scriptparameter" function in the following If statement, to replace the two instances of "standard 1": If [standard 1::highlight_a_tempkey = standard 1::zk_standard_p]
February 24, 200718 yr You need to provide more info, this is a bit vague. Post a file or provide more detail.
February 25, 200718 yr It's possible using the Evaluate() function: If [ Evaluate ( Get ( ScriptParameter ) & "::highlight_a_tempkey" ) = Evaluate ( Get ( ScriptParameter ) & "::zk_standard_p" ) ]
February 25, 200718 yr Author Thanks comment, I appreciate your help. This works on my if statement but I cant get it to work on a clear statement. In light of what StuartT suggested, here is more information. This is my current script which works perfectly to toggle a colour on and off. I need to this for 6 table occurances - standard 1:: through standard 6, and for 5 "highlight tempkeys", highlight_a_tempkey, highlight_b_tempkey, c, d, and e. Can I get this down to six scripts or even one script. If [standard 1::highlight_a_tempkey = standard 1::zk_standard_p] Clear [select; standard 1::highlight_a_tempkey] Go to Field [ ] Exit Script [ ] End if Set Field [standard 1:: highlight_a_tempkey; standard 1::zk_standard_p] Go to Field [ ] Thanks again
February 25, 200718 yr There's no way to specify the target field in commands such as Set Field[], Clear[], Go to Field[], etc. by calculation. Some workarounds have been suggested, none of them very elegant, IMHO.
Create an account or sign in to comment