PDA

View Full Version : Turbo Pascal


djnoize
05-19-02, 19:34
Hope I have the right forum for this, I'm using Turbo Pascal and can't figure out what type variable the one named "CurrMin" is supposed to be below>

Procedire SortEmpName; {starts on line 163 in the attached code}
var
Pass : word;
CurrMin : char; {this is the one}
begin
For Pass := 0 to filesize(InFile) -1 do {InFile is the name of the 'typed' file as opposed to a pure text file}
seek(InFile, Pass);
read(InFile, CurrMin); {heres where i get a 'type mismatch'}

I'm trying to sort a list of employees.
And yes, this is part of a course I'm doing :-( right now this is my last resort for help!

help!

djnoize
05-22-02, 09:28
i solved this one myself and hour later. the type should have been datakey if i recollect correctly :-)