AssignFile() problem?
From: Clay Shannon (clay.shannonNO_FAKE_HAM_IN_A_CAN_at_msbinfo.com)
Date: 12/31/03
- Next message: Andrew Bent: "Re: Closing a *.EXE file within a Delphi project (revisited)"
- Previous message: Augusto: "Re: Is there a way to cast TForm into a IDispatch?"
- Next in thread: Avatar Zondertau: "Re: AssignFile() problem?"
- Reply: Avatar Zondertau: "Re: AssignFile() problem?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 31 Dec 2003 09:26:31 -0600
The code I'm working on has the following line:
AssignFile(txtFile, sFileName);
txtFile is a TextFile type and sFileName is a string. At this point,
sFileName contains a valid value ('C:\whatever\whatever.txt'). After the
call to AssignFile() above, if I evaluate txtFile in the Watch window, it
has no value. Is this normal, or should it be the same value as sFileName?
The subsequent call to Reset(txtFile) throws an exception...("File not
Found")
-- Clay Shannon
- Next message: Andrew Bent: "Re: Closing a *.EXE file within a Delphi project (revisited)"
- Previous message: Augusto: "Re: Is there a way to cast TForm into a IDispatch?"
- Next in thread: Avatar Zondertau: "Re: AssignFile() problem?"
- Reply: Avatar Zondertau: "Re: AssignFile() problem?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|