Nigel,
thanks for your response. I believe the speed of the call is the issue (on NT.) If I call the function multiple times in a while loop, after between three to six calls, the routine works. Is it the ADIR command, or is it the slowness of the network's response or timeout parameter setting?
We have tried the following code to test the problem:
---
lcTEST = left(lcDIR, len(lcDIR) - 1)
ln_cnt = 0
DO WHILE adir(laTEST, lcTEST, 'D') = 0 AND ln_cnt < 300
ln_cnt = ln_cnt + 1
@10,10 SAY STR(ln_cnt) +" - "+ STR(ln_cnt + 1)
ENDDO
IF ln_cnt = 300
do ERROR with 'The directory ' + lcDIR + ' was not found.'
lcDIR = '*ERROR*'
endif ln_cnt
---
lcDIR is the string of the directory. laTEST is the array that contains the directory contents.
Once again, thanks in advance!
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement