Thread: Pocket Weather
View Single Post
  #2 (permalink)  
Old 11-12-2008, 06:51 PM
digitaldon37 digitaldon37 is offline
Basic4ppc Veteran
 
Join Date: Jan 2008
Posts: 210
Default FilesEx error

I am getting an error while reading a file's attributes with the FilesEx library - but only when I run a compiled version. I don't get the error from within the IDE. Any ideas?

The GetYahooRSS code (with some msgbox's to display steps):
Code:
If FileExist(AppPath & "\" & CurrentLocationCode & ".cache") = True Then
		' Requires FilesEx library - agraham
		Msgbox("creating reference to FilesEx library...")
		filb.New1
		Msgbox("getting file attributes via FilesEx library...")
		fileInfo()=filb.FileInfo(AppPath & "\" & CurrentLocationCode & ".cache")
		' Msgbox(filb.Dllversion)
		Msgbox("splitting file into into array...")
		arrDateTime()=StrSplit(fileInfo(2))
		Msgbox("comparing file datestamp with current date...")
It errors at the "fileInfo()=filb.FileInfo" line.

UPDATE: Never mind. I was using version 1.2 of the FilesEx library and the current one is 1.3 - the latest version fixes this.

Last edited by digitaldon37 : 11-12-2008 at 08:05 PM.
Reply With Quote