Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Zip Files
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Zip Files
Miscellaneous
Thread ID:
00892528
Message ID:
00892528
Views:
57
I have some code below which extracts the file names from a zip file and list them in a list box. Well that is what it is supposed to do!!! Can anybody help as to why this is not working?

Many Thanks
oShell = CREATEOBJECT("Shell.Application")
oFld = oShell.NameSpace("C:\temp\test.zip")
oIts = oFld.Items
t = 0
FOR EACH oFile IN oIts
	t = t + 1
	DIMENSION arrFNames(t)
	arrFNames(t) = oFile.Name
ENDFOR

with thisform.list1
 .RowSourcetype = 5
 .Rowsource = 'arrFNames(t)'
 .ColumnCount = 1  
endwith
Neil Lewis
IT R&D Manager
Velmore Ltd
Next
Reply
Map
View

Click here to load this message in the networking platform