Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding data to an array froms several arrays
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01219995
Message ID:
01220332
Views:
24
That was perfect Tore. I made a few changes and it worked beautifully, better than the way I was going.
CLEAR

CREATE CURSOR curImage (Filename c(20)) && Add more fields if relevant
lcFileType='TIF,PNG'
SET DEFAULT TO something
FOR x=1 TO GETWORDCOUNT(lcFileType,',')
	lnSuccess=ADIR(aImages,'*.'+GETWORDNUM(lcFileType,x,','))
	IF lnSuccess > 0
		APPEND FROM ARRAY aImages
	ENDIF
ENDFOR
INDEX ON FILENAME TAG FILENAME
SELECT * FROM curImage ORDER BY Filename INTO ARRAY aImages
LIST MEMORY LIKE a*
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform