![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 | |
|
Newbie
|
EInOutError
I was taught Pascal in my 6th form and at the time, I hated it! It seemed so rubbish! Until I tried to learn a few different languages including python and java (both of which I'm continuing with, incidentally) and found them much harder than Pascal. And then thinking back, I realised that through all the teasing and joking, deep down, I loved Pascal. This has encouraged me to start with Delphi as I'm patially familiar with it anyway.
Well now you all know my life story, time for my problem... I've been working through the delphi tutorials here to refresh my memory of the syntax and get to grips with the features of delphi that weren't in pascal. I got to this tutorial and this is where my problem arose. I followed the guide fully (I think!) but then I came to this section of the guide.... Quote:
The error happens (I think) on the like which says 'write(df,c2);' although there is no line reference so I'm not 100% on this. Is it anything to do with the fact that the guide was written for delphi 1 and 2 but I'm using 2005? Or have I missed out something obvious and stupid?:o |
|
|
|
|
|
|
#2 |
|
Hobbyist Programmer
Join Date: Dec 2005
Posts: 118
Rep Power: 0
![]() |
Where is df defined?
I personally think Pascal is a very elegant language (if not as flexible as Python...) but it looks even more elegant if you indent your code :p |
|
|
|
|
|
#3 | ||||
|
Newbie
|
Quote:
mine is indented! That was taken from the tutorial so blame them:pdf is defined as 'df : file of byte;' and it's defined globally, just before 'implimentation' as instructed *runs to check the instructions!* yup, it says... Quote:
Quote:
One last thing whilst I'm here... this part had me a little confused... Quote:
Maybe you could help me shed some light on these little errors. Especially as I wrote a very simple ascii game in pascal whilst I should have been working on my project in 6th form and I'm dying to make it 32bit and actually finish it with graphics and all that ![]() |
||||
|
|
|
|
|
#4 |
|
Hobbyist Programmer
Join Date: Dec 2005
Posts: 118
Rep Power: 0
![]() |
Er ... if you PM me the entire source file I can try pinpoint the error, otherwise I'm afraid I have very little idea what's going on here.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|