@westalke: Thank you for looking at my code and cleaning it up.
The code below works fine on Windows but not on the Android Player and the Bada Player
dim filess[1000] as string
n= readConfigFiles()
do
for i = 1 to n
print (filess[i])
next i
if getPointerPressed() = 1 then end
sync()
loop
function readConfigFiles()
s as string = ""
i as integer = 0
setcurrentdir(".")
s=GetFirstFile()
while ( s <> "" )
inc i
filess[i] = s
s=GetNextFile()
endwhile
endfunction i
The following code works well on all three platforms. The only difference is that I donĀ“t use a user defined function.
dim filess[1000] as string
s as string = ""
i as integer = 0
setcurrentdir(".")
s=GetFirstFile()
while ( s <> "" )
inc i
filess[i] = s
s=GetNextFile()
endwhile
do
for j = 1 to i
print (filess[j])
next j
if getPointerPressed() = 1 then end
sync()
loop
Has someone an explanation? Can someone test the code on BADA and/or Android.