Solved

what happened to assignfile with typed files in delphi 6

Posted on 2002-06-18
3
584 Views
Last Modified: 2007-12-19
assignfile does not appeard to work with  a simple typed file complaining that that there is no
overloaded function any ideas this works fine in 5 down
type
Brec=   packed  record
                                  brd :byte;
                                 scnt :byte;
                              B_ID  :int64;
                            end;

brds = file of brec;
var
       bf:brds; //as var                     //declared either way
       
       bfile:file of brec;
begin
  Assignfile(bf,'rembrd.dta');        //neither one works
  Assignfile(bfile,'rembrd.dta');



             
0
Comment
Question by:rrkelly
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
DragonSlayer earned 50 total points
Comment Utility
perhaps you are using some units that have the same procedure name (AssignFile)?

Try with
  System.AssignFile(bf, 'rembrd.dta');
0
 

Author Comment

by:rrkelly
Comment Utility
The problem was OoMisc (stock delphi unit) which was brought in by an Async4 serial port component
Oomisc has several overloaded assignfile function which were causing a conflict with the System unit
which is where assignfile is to be used from
Thank You
 DragonSlayer
  this lizard is dead disected and buried.




























 
0
 
LVL 14

Expert Comment

by:DragonSlayer
Comment Utility
my pleasure :)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now