If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Turbo Pascal

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-19-02, 18:34
djnoize djnoize is offline
Registered User
 
Join Date: May 2002
Posts: 7
Unhappy Turbo Pascal

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!
Attached Files
File Type: zip ass7exp.zip (1.9 KB, 80 views)
Reply With Quote
  #2 (permalink)  
Old 05-22-02, 08:28
djnoize djnoize is offline
Registered User
 
Join Date: May 2002
Posts: 7
Cool solved

i solved this one myself and hour later. the type should have been datakey if i recollect correctly :-)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On