PDA

View Full Version : Pascal Cheat sheet???



stevengreen22
09-04-2011, 09:43 AM
Hi guys,

I just stumbled across an awesoem site with a really decent PHP cheat sheet in which has helped me loads...Just wondering ig anyone knows of a Pascal one? I did a search but links were either dead or not available

code_glitch
09-04-2011, 10:51 AM
Could you post a link? It would be helpful to know what exactly we are looking for ;)

stevengreen22
09-04-2011, 01:02 PM
Sure thing - it's http://www.addedbytes.com/cheat-sheets/

There are some great ones there, I'm mainly loking at the css, php and html ones btu a pascal one would be awesome as well!!!

Also...A bit off topic, I'm trying to write a prog at work and the size of the screen is killing me, I mean, it's crap, 26 lines or something daft. I just grabbed the lazarus GUI and it looks pretty good, hugely impressed that I can scroll!!!! :d:d: do you know of a guide / tut thats about to give me a heads up on using it? I've tried to 'run' and 'build' but not a great deal of success.

vgo
09-04-2011, 01:28 PM
Not really a cheat sheet, but useful for beginners anyway: Delphi basics (http://www.delphibasics.co.uk/)

stevengreen22
09-04-2011, 01:35 PM
so, is delphi the same as lazarus then in that it can read and compile the program? I don't want to deviate from the Pascal script language if possible as I'll get flayed when I hand the work in.
What I'd like..is Free Pascal in 'big screen mode'

MuteClown
09-04-2011, 01:52 PM
Well Dalphi and Lazarus both use Object Pascal, just note there are a few small details that are different. Free Pascal can also be used in Delphi mode making it possible to write just like delphi.
also "Pascal script language"?

stevengreen22
09-04-2011, 02:10 PM
'Pascal Script language' - suppose that was a bit weak. What I mean I suppose, is that the tutor is very much all about FPC, if I started using TP it'd make huim unhappy, I've had a look at delphi and lazarus and they seem to have differnt commands here and there, I really don't want to / can't deviate from the FPC way of things. Does that make any more sense?

User137
09-04-2011, 03:51 PM
Most tutorials that are for Delphi also directly works with Lazarus. I think the main difference is that Delphi makes programs to Windows only so some use directly WinAPI. Lazarus has workaround for this through LCL crossplatform units. But when it comes to normal programming with components there is propably not a single difference.

stevengreen22
09-04-2011, 04:59 PM
ok, that makes a bit more sense, one thing, thats simple as sin but I can't make it work!!!

When I use pascal, I run and then switch screen to see the program running, How do I do this in lazarus?!? I've tried building and running but I cna't find it!?!?!?
Elp :)

WILL
09-04-2011, 06:34 PM
Give this video tutorial a good viewing. I'm sure it will explain everything you need to know to get you started. Remember it's a GUI so you'll have to learn the interface. :)

http://www.pascalgamedevelopment.com/content.php?195-Free-Pascal-Lazarus-Tutorial-1-First-Program-Hello-World!

stevengreen22
10-04-2011, 12:35 PM
great help! Thanks. And the site it links too is pretty awesome too!!!

WILL
10-04-2011, 06:25 PM
If you have a Kindle or an iPad with the Kindle app, you could look for the ebook Pascal Basics. It's a pretty good reference for your basic Pascal dialect, though it does use Turbo Pascal. Just as well the dialect used is compatible with Free Pascal so it'll do the job. It costs only $0.99 which shouldn't break your bank, especially if you already have an eReader/tablet. :)

paul_nicholls
10-04-2011, 10:49 PM
If you have a Kindle or an iPad with the Kindle app, you could look for the ebook Pascal Basics. It's a pretty good reference for your basic Pascal dialect, though it does use Turbo Pascal. Just as well the dialect used is compatible with Free Pascal so it'll do the job. It costs only $0.99 which shouldn't break your bank, especially if you already have an eReader/tablet. :)

:D there is always the free kindle ebook reader for PC too that you can download from Amazon :)

You can then get the $0.99 book and read it for free ;)

cheers,
Paul

WILL
10-04-2011, 11:36 PM
Yes, you're right there are free PC/Mac applications that will allow you to read Kindle books. I actually like how flexible Amazon has made the Kindle store.

stevengreen22
11-04-2011, 03:47 PM
Nice one guys! I had a look for an online ebook as I don't have a kindle and not at home to dload software.

Foudn a couple of useful guides, omne better than the other.

(Can i upload them here???)

code_glitch
11-04-2011, 04:45 PM
free kindle ebook reader for PCAnd I can install it on my windows 7 tablet along with PDF viewers, flash, OpenGL gaming, 1080p movies, office, full keyboard (albeit azerty), and full on firefox. TBH I am very glad I went down this route rather then iPad - its a bit heavier and the battery clocks in at just over 6h30 but still, I can't complain :)

In terms of tutorials and reference I'd definitely check out http://www.learn-programming.za.net/learn_pascal_programming.html (http://www.learn-programming.za.net/programming_pascal_learn01.html) - its where I learnt pretty much all my pascal and they have some gret indexed stuff. There's another one out there which I stumble across occasionally, but whenever I think 'that compiler might have a point in saying something crazy is what I'm doing that's where I look ;) You'd be surprised how often that is... Just like those times you forget which way Str and Val go (Int - > string or the other way?) and which order to put the string, integer and error code into Val (guess ;))...

Legolas
12-04-2011, 07:04 AM
http://www.explainth.at/downloads/dquick.pdf

Maybe a little bit minimalist, but hey! it's a cheat sheet, not an encyclopaedia :D

stevengreen22
12-04-2011, 09:17 AM
thats a pretty handy sheet. thanks!