Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADIR() & _ClipText
Message
 
 
To
07/04/2006 15:35:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows NT
Database:
MS SQL Server
Miscellaneous
Thread ID:
01111558
Message ID:
01111569
Views:
25
>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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform