1. Re: WinClass Question for Al (part 2)
- Posted by don cole <doncole at pacbell.net> Dec 23, 2005
- 440 views
Al Getz wrote: > > don cole wrote: > > > > Al Getz wrote: > > > > > > BTW i had a tiny problem with the 'count' in that if there are any > > > files that are not picture files in the directory they tend to mess > > > up the count, so that pic #1 might come out pic #2 if you forward to > > > the end of the directory and then back up to the beginning. > > > I tried this with only 8 pictures in a directory and one ex.err file > > > that got there by accident when the viewer first crashed without the > > > include file i talked about. What happens is when i forward to the > > > last pic (and maybe hit forward another time not knowing it's the > > > last pic) then go backward trying to get to the first pic, the pic > > > count gets all messed up because that one extra file (ex.err) messes > > > up the 'count' variable. > > > > I'm going to look into this ,but ex.err shouldn't be in the DirList at all > > because > > > > it's not a valid picture. > > > > >In other words, it looks like maybe managing > > > the 'count' variable to keep track of pics (which by the way is also > > > a good idea) needs to be looked at again (with at least one pic that > > > is not a picture in the same directory as some pictures you are viewing). > > > In my original viewer i only kept track of files by index, even if > > > they were not pics, so it counted everything in the directory. This > > > was not as good as having 'count', but it was easier to implement :) > > > > > Don Cole > > A Bug is an un-documented feature. > > A Feature is a documented Bug. > > Hi again Don, > > > Oh ok, if you're not worried about it that's fine. Just thought > if there was picture files mixed with other types of files (like > maybe text files) you may not like the results due to the way > 'count' looks like it is being handled. If you are always viewing > directories that always contain only supported file types then > there wont be a problem, but if there is even one unsupported type > the count may get messed up. > I found this by accident :) when the ex.err file ended up in the > same dir as my trial pics. I was wondering when i went through > all the files the pic numbering wasnt the same when i got back down > to "1 of 8". "1" had become a different pic :) > I was still able to view all the pics however so that was good. > > > Take care, > Al > > And, good luck with your Euphoria programming! > > My bumper sticker: "I brake for LED's" I see what you mean Al, I tried it with 13 picures labeled 1.jpg thru 13.jpg. When I onClick_ButtonBackward from pic 13.jpg it goes to pic 11.jpg. I don't know why but this must be fixed before releasing this version of the Slide show. Also I would like to point out that the folder has about 20 more none picture files in it. But I don't believe thay have anything to do with the problem. Thanks for bringing this to my attention. I'm going to work on a solution right now. Don Cole A Bug is an un-documented feature. A Feature is a documented Bug.