Now as I have been updating this application, I am trying to complete a user's request by downloading data from the FCC which is in zip format. When I enter the following code and run the application it skips over the callback message function and goes directly to the break point. Within the callback message function, I have a breakpoint command so I can try to figure out why the contents of the archive is not being extracted in the program's data directory.
Code: Select all
libUrlSetStatusCallback "FCCLicenseDownloadStatus", the long name of me
libUrlDownloadToFile tFCCLicenseDataDownload, tFCCLicenseDataFilename, "ExtractFCCDownloadedArchive"
breakpoint
Code: Select all
command ExtractFCCDownloadedArchive pURL, pStatus
local tList, tArchiveFileLoc
breakpoint
put gApplicationPrefsDir & slash & "l_mdsitfs.zip" into tArchiveFileLoc
put "Status: Extracting FCC Application Data Files from Online Resource" into fld "Status Msg Field" on card "Main Card" of stack "ViewsOnLearningEBSSplashApplication"
revZipOpenArchive tArchiveFileLoc, "read"
put RevZipEnumerateItems(tArchiveFileLoc) into tList
repeat for each line i in tList
if i = empty then
next repeat
end if
revZipExtractItemToFile tArchiveFileLoc, i, (gApplicationPrefsDir & slash & i)
end repeat
revZipCloseArchive tArchiveFileLoc
delete variable tList
delete variable i
delete variable tArchiveFileLoc
end ExtractFCCDownloadedArchive
Any Ideas why this Extract Function is not being ran.