Hi Ross,
Well, with my limited knowledge of Pascal, I believe that you're gonna
need to remove that 'begin' and also remove the ';', cos you don't have
them before an else, from memory.
Ross Levis wrote:
>
> Thanks all for the TimeSeparater help. OnCreateForm will do the trick.
>
> I have another beginners question. The following generates the compiler
> error ' ; not allowed before ELSE'. I can get around the problem but I
> don't think I should have to! Does it say somewhere that a Case
> statement can't be in a If..Begin..End block?
>
> if InputIsCDG then
> begin
> case WriteRadioGroup.itemindex of
> 0: BINbuffer := EmptyWAV;
> 1: BINbuffer := CDGbuffer;
> 2: BINbuffer := EmptyWAV+CDGbuffer;
> end;
> else
> case WriteRadioGroup.itemindex of
> 0: BINbuffer := copy(CDGbuffer,1,2352);
> 1: BINbuffer := copy(CDGbuffer,2353,96);
> 2: BINbuffer := CDGbuffer;
> end;
> end;
>
> Cheers,
> Ross.
>
> ---------------------------------------------------------------------------
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
--
Bevan Edwards mailto:[EMAIL PROTECTED]
Achieve Software Limited http://www.achieve.co.nz
Phone: (64-9) 444-4210 ICQ: 732011
Fax: (64-9) 444-4201
Mobile: (64-21) 979-603
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"