pascal

Online Code Beautifier And Formatter for Delphi or Pascal

Do you know any online Code Beautifier And Formatter for Delphi or Pascal Sintax? only i can found this tool , but only highlight the source code. Bye. ...

How to shown an Hyperlink in Inno Setup?

I'm making a validation in my Inno setup installer to check whether or not a Microsoft update is installed on the machine, if not, I'm showing a simple message box telling the user that the update is required, this is the message code: MsgBox('Your system requires an update supplied by Microsoft. Please follow this link to install it: h...

Help in Pascal writing a word counter

I have to write a program in Pascal which has to detect how many words on a text (input by the user) start with a certain letter. I can't use arrays, can you give me any hints as to where to start? ...

Delphi: How to have non-contiguous subrange enumeration type?

While the following subrange enumeration declaration works: type TReceiptCode = 'A'..'F'; This does not: type TReceiptCode = ' ','A'..'F', 'R'; Nor does type TReceiptCode = ' ','A','B','C','D','E','F','R'; How can i declare a subrange type with non-contiguous values? ...

Porting Code to Windows 7

I wrote a game years ago (under Windows 95) in Pascal. Since then over time I'd checked it and it still ran with the newer OSs. It works in XP. It works in Vista. However under Windows 7, even in the XP compatibility mode, it crashes on the spot. I've yet to get a chance to attach a debugger and wade through the decade-old code, but...

How to create a simple pascal-program in Codegear RAD Studio 2009?

For example, this simple program: Program Helloworld; Begin writeln ('Hello world!'); readln; End; ...

How do I make the Lazarus IDE look and work like Delphi 2007 or newer?

I've begun working with using Lazarus to make some simple utilities for my own use on Ubuntu 9.10. I know many people like the modular Delphi 7 layout, but I hate it. I find it annoying and disruptive. I dislike using Gimp for the same reason. I'd also prefer to have the Delphi 2007 palette menu. Is this possible within the latest versi...

How to write inline assembly in gnu pascal?

Since there is not offical reference,I got only one tutorial gpcasm.zip .But when I try to follow the tut and try the inline assembly example on my debian.The gpc was not happy with it. gnu_asm.pas : In procedure 'MyStupidDelay': gnu_asm.pas:3: error : can't find a register in class AREG while reloading asm Here is the code progra...

Recommended books/tuts/useful links on pascal programming language

Tried google, but could not find good enough book/tuts on pascal programming language.So what are your recommendations? thanks. ...

How to do OOP with Pascal?

I am learning OOP with the pascal programming language.After googling the Internet, I found the OOP -- The GNU Pascal Manaul.But when I typed in the source code of the example above and compile, gpc returns: object.pas:13: error: unresolved forward declaration `Fooparent_Baz' Why would gpc fail to compile its manaul's example. PS:Che...

pascal string to date

Can someone tell me what's wrong with this piece of code: ShortDateFormat := 'dd/mm/yyyy'; j:=StrToDate('05/05/1999'); I keep getting An unhandled exception occurred at $000000000042FA33 : EConvertError : Invalid date format I'm using fpc. ...

Tutorial for Pascal/Delphi for C++-Coders

Hi, I'm a C++-Programmer. But now i have to learn Pascal/Pascal. Are there any websites, documents around that can teach someone with my knowledge the difference? ...

Untyped Pointer in Pascal

What can I do with untyped pointers in Pascal? (Why untyped pointers are good?) ...

Building a GUI Form Using Pascal

Hello, I'm emulating a old Macintosh(IIci) and using CodeWarrior 1 Gold 68k, but how I can design a Form on it only by using code? Thanks. ...

Is $apptype a Best Pratice Comment?

Hello, I just started using FPC to pratice more my old knowleadge of Pascal, but now for Linux, then I started seeing much this comment after the 'program' declaration: {$apptype console} But is this a best pratice comment or a type of declaration? Thanks. ...

GUI Only By Using FPC

Hello, I want to know how I can develop GUI applications(32 Bits) without using Delphi language(Object Pascsl), only by using FPC with Lazarus installed(Pascal). Thanks. ...

What does this mean in pascal?

p^.rlink=q q^.llink=p ...

Does anyone have a good example of how to use Synapse's Heartbeat function?

Hi, I am using Synapse for Delphi, but when during HTTP downloads, of course, the GUI freezes. Looking at the documentation, they suggest using the OnHeartbeat method. (See http://www.ararat.cz/synapse/doku.php/public%3Ahowto%3Aheartbeat ) Unfortunately, they don't actually give any code example, and while the concept is simple, th...

How to assign a multiline string value without quoting each line?

Is there a way to assign a multiline string value in Delphi without having to quote each line? Edit (the specific problem): I have some SQL queries which I want to test outside Delphi. When copying the queries it is a bit of overhead to add and replace quotes every time. ...

Pascal Readln is restarting the PC

I have a problem, though it might be virus. In my school, when i compile pascal programms and IF there is readln on the end - the computer restarts. The OS is windows XP. Does anyone here know something about dealing this issue ? Thanks in advance. ...