Copyright: Copyright © 1997 Robert R. Marsh,SJ


Contents
FirstAid for Delphi

Every so often the Delphi IDE seems to get confused about its line numbers: errors are reported in places there is no code; the debugger jumps about with no apparent relation to the code that is being executed.

The Delphi newsgroups propose many diagnoses but, in my experience, the culprit has always been code pasted into the IDE from another source. The Delphi IDE flags line breaks with the characters $D$A but some other editors use $A$D or even just $A or $D. The IDE understands such markers enough to format the code correctly but not enough to mark errors properly.

The solution is straightforward but awkward: filter out any improper codes. FirstAid does the job for you.

Using FirstAid	Problems	License


Using FirstAid

Use the File|Open & Fix menu item or the toolbar button to select the source file to fix. This automatically scans the file and creates a fixed file with the extension ".FA".

The end of the scan, which is very rapid, is signalled by "Done!"

The original file is not changed in any way.

Problems


Problems

FirstAid assumes source files do not contain CHR(0) codes.

Don't try to fix non-source files (e.g. executables) - you'll only probably produce rubbish.


License

FirstAid for Delphi was written in Borland's Delphi by Robert R. Marsh, S.J.

This is Version 1.1.

Copyright (c) 1997, Robert R. Marsh, S.J. & the British Province of the Society of Jesus.

FirstAid is simple utility knocked off in an afternoon. It appears to work but I cannot guarantee it won't do something terrible to you or yours. As always use it at your own risk.

Please let me know of any bugs you may discover and whether or not you find FirstAid useful.

I can be contacted at RobMarsh@aol.com. Other Delphi stuff can be downloaded from the web site:

http://members.aol.com/robmarsh/

You may distribute FirstAid as widely as you wish as long as you distribute the entire package intact. You may use FirstAid without charge as long as you make no profit from its direct sale. If you do use this program you might consider making a gift to your favorite charity.

Users of FirstAid must accept the usual legal stuff, i.e., the following disclaimer of warranty:

FirstAid is supplied as is. The author disclaims all warranties, expressed or implied, including, without limitation, the warranties of merchantability and of fitness for any purpose. The author assumes no liability for damages,direct or consequential, which may result from the use of FirstAid.

Copyright (c) 1997. Robert R. Marsh, S.J. & the British Province of the Society of Jesus.