Forum Discussion
AlexeyKolosov
15 years agoStaff
Hi Markus,
I guess, the problem is actually caused by the fact that you are adding the function to one unit and trying to use it in another. If so, please note that JScript does not support multiple units natively, and therefore, the code will work only in a single unit. Here is a workaround you can try to make the code work between units:
1. Place the code to a string variable and share the variable between units.
2. In the global scope of each unit, call the eval function to execute the shared code - this should make the additional functions available in each of the units.
Related Content
- 4 years ago
- 12 years ago
- 6 years ago
- 3 years ago
Recent Discussions
- 16 hours ago
- 19 hours ago