Quantcast
Channel: Cadence Technology Forums
Viewing all articles
Browse latest Browse all 63097

Forum Post: RE: Is there a way to access/modify external data from enterfunction doneProc without using globals?

$
0
0
Hi Harry, The best thing would have been if the enter functions (such as enterBox) supported having the callback specified as a function object, in which case you could then pass a lexically scoped function which would then be able to call a function which can access your data structure in the same scope. Unfortunately that's not supported - it only allows a string (and it then calls it by appending the arguments). Some other human interface functions were updated a while ago to support function object callbacks, but not the enter functions. I came up with a fairly ugly workaround which avoids needing any global variables, but I'm not particularly comfortable with sharing it here (a colleague in R&D came up with a slightly different ugly workaround). So I think the simple answer for now is that you can't really do this. I would suggest you contact customer support and describe your requirement, and ask for a duplicate for CCR 2169313 to be filed on your behalf. Regards, Andrew.

Viewing all articles
Browse latest Browse all 63097

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>