Because of some issues when using external files (security etc.), using DataSection could be useful. But what about assigning a (global) array to a memory location which has been defined by data? If possible, this would speed up program execution (no need of filling the array with values) and reduces memory hunger.
I'm not sure, if this could be realized, and, of course, wrong array definitions could lead to unwanted results, but that shouldn't be a big problem.
Code: Select all
Global Dim Test.w(10000) Using ?TestMemory
DataSection
TestMemory:
Data.w 9,2,3,34,1,5,6,6,7,...
EndDataSection