HP Forums

Full Version: Check FileExistance in Hepax
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi!
I wrote a new survey package on the 41 (go41cx emulator) and used the hepax system. I integrated a littel Point Management which is based on a file for each Point. The PointNumbers are represented by the filenames and inside I store x/y.
So I have functions for set, get list and delete pointinformation.
But I need a function to check if a point (i.e. a file) exists or not, to avoid errors when I call Pointinformation in my cogo-programs.
Any Suggestions?

Best,
Johannes

PS: If someone is interested, I will post the Manual here, hepax file and manual were sent to Mr. Farlow too.
Hi,

at least the X-Memory file management functions have some kind of error feedback in case a wanted file doesn't exist. Maybe the HEPAX functions offer a similar feedback? If yes, you could simply create an error trap (SF 25) before a file selection, and handle it depending on the result (FS? 25 XEQ ErrHandler).
(04-19-2014 01:40 PM)Raymond Del Tondo Wrote: [ -> ]Hi,

at least the X-Memory file management functions have some kind of error feedback in case a wanted file doesn't exist. Maybe the HEPAX functions offer a similar feedback? If yes, you could simply create an error trap (SF 25) before a file selection, and handle it depending on the result (FS? 25 XEQ ErrHandler).

Hi Ray!
I think thats it! I didnt write hp41 code since 25 years and didnt remember this possibility! Yes there is a error given back. I'll try it in time!
Thank you very much !

Best,
Johannes
Hi Johannes,

glad I could help:-)

But since I also don't program the HP-41 every day, my description contained a small error. It should read: SF 25 Stmt_to_trap FC? 25 XEQ ErrHandler, because an error condition will clear flag 25.

Cheers
Hi Raymond,
thanks again for the hint, everything runs very good!

Best,
Johannes


(04-19-2014 11:43 PM)Raymond Del Tondo Wrote: [ -> ]Hi Johannes,

glad I could help:-)

But since I also don't program the HP-41 every day, my description contained a small error. It should read: SF 25 Stmt_to_trap FC? 25 XEQ ErrHandler, because an error condition will clear flag 25.

Cheers
Reference URL's