문제

How do I destroy an array after I have used it? My program works great the first time I use it. The second time I use it, everything gets laggy.

Initializing the array like this:

local array MyFiles[1,5]
nFilesFound = ADIR( MyFiles, qazMSG + '*.*')
도움이 되었습니까?

해결책

This will remove a variable (including an array) from memory:

RELEASE varname

다른 팁

It's unlikely that the array already existing is causing a slowdown. More to the point, since you declare the array local, it's released automatically when the routine ends. So your speed problem is something else.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top