Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADIR() & _ClipText
Message
 
 
À
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:
01111569
Vues:
24
>How do you get the array results from ADIR() into _ClipText ?

You'll have to convert each row of array in the text line and ADD CRLF. Something like
lcCrLf = CHR(13) + CHR(10)
lcStr = ""
FOR i=1 TO ALEN(laFileList,1)
	lcStr = lcStr + laFileList[i,1] + ;
			SPACE(1) + ;
			STR(laFileList[i,2]) + ;
			SPACE(1) + ;
			DTOC(laFileList[i,3]) + ;
			lcCrLf				
ENDFOR

_CLIPTEXT = lcStr
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform