[fpc-pascal] string variant

2008-08-26 Thread ik
Hello, I've made the following example: program test_variant; uses variatns; var my_var : Variant; begin my_var := 'Hello World'; writeln(my_var); end. The result is Fatal: illegal character "'�'" ($E2) Is it it a bug (fpc 2.2.2) or I'm doing something wrong here ? Thanks, Ido -- http:/

Re: [fpc-pascal] How do I add a TComponent to TPanel dynamically?

2008-08-26 Thread Danie
Great Stephano! That did the job. On Di, 2008-08-26 at 10:42 +0300, Stephano wrote: > fCVShape.Create(Sender) -> fCVShape := TShape.Create(Sender) > fCVShape.Destroy -> fCVShape.Free Thanks DanieW ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.

[fpc-pascal] Problem found

2008-08-26 Thread John Youngquist
I have mentioned in the past that I occasionally need to re-install FPC when it won't launch from the icon. I delete the entire system and then reload. This time it didn't work. I found two files remaining the bin directory. When i deleted fp.dsk everything worked. I didn't keep a copy but next

Re: [fpc-pascal] try except question

2008-08-26 Thread Marco van de Voort
In our previous episode, John Youngquist said: > I am using FPC in Turbo compatibility mode. When I include a TRY statement > it generates an error. I am trying to trap an overflow exception and > generate an error message. > I notice the TRY feature is not in the help file. I have read chapter 14

[fpc-pascal] try except question

2008-08-26 Thread John Youngquist
I am using FPC in Turbo compatibility mode. When I include a TRY statement it generates an error. I am trying to trap an overflow exception and generate an error message. I notice the TRY feature is not in the help file. I have read chapter 14 but find no way to enable the TRY feature. Do I nee

Re: [fpc-pascal] How do I add a TComponent to TPanel dynamically?

2008-08-26 Thread Stephano
Danie wrote: Constructor TControlVolume.Create( Sender:TComponent ); begin Inherited Create(Sender); fCVShape.Create( Sender ); end; Destructor TControlVolume.Destroy; begin fCVShape.Destroy; Inherited Destroy ; end; fCVShape.Create(Sender) -> fCVShape := TShape.Create(Send

Re: [fpc-pascal] How do I add a TComponent to TPanel dynamically?

2008-08-26 Thread Mattias Gärtner
Zitat von Marco van de Voort <[EMAIL PROTECTED]>: > In our previous episode, Danie said: > > I hope this the right forum for this question (gtk on > > lazarus-0.9.24-1.fc8 rpm on fpc-2.2.0-10.fc8 rpm)(but I know there are > > people here that can help me %^). > > I would like to add a special TSha