Home | Reviews | GUIpedia | Forum | Fun500
Brandon | Good File Exist routine?In Fun500 5.x one of the most common complaints is that apps don't install correctly, and then the desktop corrupts. I could just implement a simple error handler in the Desktop, but thats not fixing the real issue, so I need a routine to tell if a file exists, so I can tell if a file installs correctly or not, and if not try again before giving up. Does anyone have a routine for QB7.1 and QB4.5 support would be nice. | 2009-08-28 | 7:58 PM |
aguma | Re:Good File Exist routine?[code] FUNCTION FileExists (n$) ON LOCAL ERROR GOTO noexist FileExists = true n = FREEFILE OPEN n$ FOR INPUT AS #n CLOSE #n EXIT FUNCTION noexist: FileExists = false RESUME NEXT END FUNCTION [/code] I think one came with QBASIC, but I don't remember what it's called. | 2009-08-28 | 8:36 PM |
2021 Brandon Cornell