Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADIR() & _ClipText
Message
De
07/04/2006 15:45:05
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
07/04/2006 15:35:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows NT
Database:
MS SQL Server
Divers
Thread ID:
01111558
Message ID:
01111566
Vues:
13
>How do you get the array results from ADIR() into _ClipText ?

Personally I try to avoid ADIR as it is dependent on arrays which are limited in size. If I use it I grab individual files to get the sizes etc.

SYS(2000) lets you step through a set of files

This code isn't tested, but hopefully it gives you the idea.
lcFile = sys(2000,"c:\*.*")
do while not empty(m.lcFile)
  adir(laDir,m.lcFile)
  _cliptext = _cliptext + m.lcFile + laDir[i,2] + laDir[i,3]
enddo
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform