[DUG]: Internal Error

2000-01-06 Thread Andrew Masters
Hi All, Merry Xmas. I have just started to get the error "Internal Error: L1086" when I compile/run my app. If I compile again it's OK. It seems to reappear every 4th or 5th compile but again goes away if I simple ignore it and compile again. I'm using D3. Is this a common one ? Any help muc

[DUG]: Bug in parameterized query?

2000-01-06 Thread Grant Black
Strange - I noticed in some e-mailed reports a whole bunch of data coming out with no dates. I was worried that it was Y2k related but it turns out to be the innocent looking code snipped & pasted below. The problems is that if I Clear the 'CollDate' Param so that the datetime field is set t

RE: [DUG]: Internal Error

2000-01-06 Thread Dennis Chuah
> I have just started to get the error "Internal Error: L1086" > when I compile/run my app. If I compile again it's OK. It > seems to reappear every 4th or 5th compile but again goes > away if I simple ignore it and compile again. I'm using D3. > Is this a common one ? I'm afraid so. Try doing

[DUG]: scaling a print

2000-01-06 Thread Leo Ramakers
hi folks I am trying to print the displayed content a pagecontrol, and have succeeded in getting print using the following code; if PrintDialog1.Execute then begin .. with Printer do begin BeginDoc; for I := Start to Stop do begin PageControl.Pages[I].PaintTo(Handl

Re: [DUG]: Internal Error

2000-01-06 Thread Nic Wise
"Official" Inprise/Borland word on Internal Errors goes something like: "If you see this message, the compiler is in an unknown state. The IDE should be shutdown and restarted for consistant results" or something similar. Most internal errors are caused by something - they dont just happen. Mig

RE: [DUG]: Bug in parameterized query?

2000-01-06 Thread Grant Black
Turned out that the problem was that the query was Prepared - doing a Unprepare fixed it. Why a prepared query should not work correctly when a param is set to NULL is entirely another matter... > -Original Message- > From: Grant Black [mailto:[EMAIL PROTECTED]] > Sent: Friday, 7 January

RE: [DUG]: scaling a print

2000-01-06 Thread Grant Black
Its been a long time since I used to handle printing programmatically but under C++ I used to scale the device context to fit drawings See the delphi help for TCanvas.Handle - you set the handle of your pagecontrol handle to a device context. (also see - GetDeviceContext(var WindowHandle: HWnd)

RE: [DUG]: scaling a print

2000-01-06 Thread Marshall, Paul
You can PaintTo into a TBitmap, and the StretchDraw the bitmap onto the Printer Canvas. This works for some printers. But the robust solution is to copy the bitmap into a Device Independent bitmap (with GetDIB) and use StretchDIBits. (I have some code for this if it's any help). Regards, Paul Mar

Re: [DUG]: scaling a print

2000-01-06 Thread Leo Ramakers
Grant thanks, I discovered that I can kluge it if I print the main form thus; FormMain.PrintScale := poPrintToFit; FormMain.print; its not quite what I wanted but I cant afford to continue gold plating it, so it will do. The device context stuff looks like a lot of work, but thanks for your

Re: [DUG]: scaling a print

2000-01-06 Thread Leo Ramakers
Paul yes, the code would be useful, please forward to me. Thanks Leo "Marshall, Paul" wrote: > You can PaintTo into a TBitmap, and the StretchDraw the bitmap onto the > Printer Canvas. > This works for some printers. > But the robust solution is to copy the bitmap into a Device Independent > bi

RE: [DUG]: Bug in parameterized query?

2000-01-06 Thread Carl Reynolds
Couldn't resist trying this one out. >From the dfm: object Query1: TQuery --A query with one date parameter ParamData = < item DataType = ftDateTime Name = 'dateparam' ParamType = ptInput end> end And my source: procedure TForm1.FormCreate(Sender: TO

RE: [DUG]: Bug in parameterized query?

2000-01-06 Thread Grant Black
> Couldn't resist trying this one out. You are more keen than I was - I simply moved on... > Well, my test worked just as expected, Prepare'd or no. BUT > having said that, I remember having a similar problem when using Delphi 4, where > Clear'ing the parameter seemed to require me to set the

[DUG]: Documentation Tools

2000-01-06 Thread Grant Black
I am trying to prepare some programmer documentation. Anybody know of any cheap / free tools that can churn through a Delphi project & create HTML documentation of procedure/functions headings? Grant Black Team Leader - PC Tools SmartMove (NZ) Ltd Phone: +64 9 361-0219 extn 719 Email:

[DUG]: Alt key combos

2000-01-06 Thread Rohit Gupta
Is there something about alt-2 combination ? Alt-1 to alt-9 work, but not alt-2. Rohit == CFL - Computer Fanatics Ltd. 21 Barry's Point Road, AKL, New Zealand PH(649) 489-2280 FX(649) 489-2290 email [EMAIL PROTECTED]