Scope of ADOscript in PROGRAMCALL attributeScope of ADOscript in PROGRAMCALL attributeScope of ADOscript in PROGRAMCALL attributeHans-Georg Fillhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=23507652021-05-20T15:14:53Z2021-05-20T15:14:53ZDear all,<br /><br />just some hints on how to use ADOscripts in the PROGRAMCALL attribute - as I found no information in the forum on this so far, I thought it may be useful to share the following information:<br /><br />If you execute ADOscript scripts in a PROGRAMCALL attribute, make sure that you set the right scope for them. <br /><br />In particular, if you use something like:<br /><br />ITEM "Überprüfung"<br />CC "AdoScript" FREAD file:"C:\\Temp\\check_availability.asc"<br />EXECUTE (text) scope:same<br /><br />Here, it is necessary to explicitly set the scope for the EXECUTE statement - otherwise the pre-defined variables (e.g. objid for the current instance where the PROGRAMCALL attribute is located) are not available in the executing ADOscript.<br /><br />Took me a while to find out ;-) - hope it helps.<br /><br />Best,<br />Hans-GeorgHans-Georg Fill2021-05-20T15:14:53Z