This might be a documentation problem where returns aren't shown with a type; in the case there is memory safety in place
Code: Select all
EnableExplicit
Define.b something
something=ExamineDirectory(#PB_Any,GetHomeDirectory(),"*.*")
While NextDirectoryEntry(something)
Debug DirectoryEntryName(something)
Wend
FinishDirectory(something)
[16:07:22] Waiting for executable to start...
[16:07:22] Executable type: Windows - x64 (64bit, Unicode)
[16:07:22] Executable started.
[16:07:23] [ERROR] Line: 4
[16:07:23] [ERROR] The specified #Directory is not initialised.
Code: Select all
EnableExplicit
Define.d something
something=ExamineDirectory(#PB_Any,GetHomeDirectory(),"*.*")
While NextDirectoryEntry(something)
Debug DirectoryEntryName(something)
Wend
FinishDirectory(something)
[16:25:42] Waiting for executable to start...
[16:25:42] Executable type: Windows - x64 (64bit, Unicode)
[16:25:42] Executable started.
[16:25:42] The Program execution has finished.
Code: Select all
EnableExplicit
Define tester.b
tester=293847928472
ShowMemoryViewer(@tester,8)
[16:32:19] Waiting for executable to start...
[16:32:19] Executable type: Windows - x64 (64bit, Unicode)
[16:32:19] Executable started.
[16:32:19] The Program execution has finished.