Path: utzoo!attcan!uunet!lll-winken!ames!ucsd!rutgers!deimos!uxc!uxc.cso.uiuc.edu!uxg.cso.uiuc.edu!uxe.cso.uiuc.edu!leonardr From: leonardr@uxe.cso.uiuc.edu Newsgroups: comp.sys.mac.programmer Subject: Re: SFPGetFile Question Message-ID: <226000045@uxe.cso.uiuc.edu> Date: 8 Jan 89 20:03:00 GMT References: <5959@polya.Stanford.EDU> Lines: 29 Nf-ID: #R:polya.Stanford.EDU:5959:uxe.cso.uiuc.edu:226000045:000:1449 Nf-From: uxe.cso.uiuc.edu!leonardr Jan 8 14:03:00 1989 chao@polya.Stanford.EDU(Chih Chao) writes in comp.sys.mac.programmer >I am using my own dlgHook in a SFPGetFile call. I need to access the >vRefNum of the current file being selected in the Standard Open File >Dialog box. I know it's file name from sfReply.fname but >sfReply.vRefNum doesn't seem to be giving me the right information. > this does seem to be the case, I wish I knew why?? >How can I get the vRefNum of the current file before the user chooses >"open" or "cancel"? > I have not tried it, but you might try checking the lowmem global, CurDirStore and see if that has the proper value stored there.. I would be curious to know if that works, or how you finally solve the problem, so please let us know! +---------------------------------+-----------------------------------+ + + Any thing I say may be taken as + + Leonard Rosenthol + fact, then again you might decide+ + President, LazerWare, inc. + that it really isn't, so you + + + never know, do you?? + + leonardr@uxe.cso.uiuc.edu + + + GEnie: MACgician + MacNET: MACgician + + Delphi: MACgician + AppleLink: D0025 + + + + +---------------------------------+-----------------------------------+