RE: [DUG]: Conversion from Interbase to SQL Server.

2003-02-10 Thread Carl Reynolds \(E-mail\)
Hi Myles, In the same situation we went down the DBX path and its worked well for us. TSQLQuery is a nice lean unidirectional dataset, like IBX, so its not a huge code transition. And like IBX, it seems to be fairly robust technology (in D6 at any rate, and once you're aware of a couple of known

RE: [DUG]: Delete a variable from a Dynamic Array

2003-02-07 Thread Carl Reynolds \(E-mail\)
Hi everyone, long time no see. Jason, I strongly doubt the problem is in the dynamic array implementation itself, if only because I've used them so many times that I would have expected to run into something similar by now. The code you posted doesn't look wrong. Can you duplicate the problems y

RE: [DUG]: Using a Delphi DLL in VB/VBA

2001-02-19 Thread Carl Reynolds
Stacey, what size is a VB integer? You probably need to make sure that your "as integer" accesses the same number of bytes as a delphi boolean, otherwise it may "spill over the edges" (into the function result?). Try defining PActive as a LongBool instead of a Boolean, and see if the problem sti

RE: [DUG]: OpenThread/TerminateThread function

2001-02-19 Thread Carl Reynolds
(quotes >> << are from the WinAPI help) 1/. >> The Win32 API does not provide a way to get the thread handle from the thread identifier. If the handles were made available this way, the owning process could fail because another process unexpectedly performed an operation on one of its threads, su

RE: [DUG]: Is this fixed in D5 (Overloading with dynamic Arrays)

2001-02-18 Thread Carl Reynolds
From: Aaron Scott-Boddendijk [mailto:[EMAIL PROTECTED]] > [in D4, I haven't got D5 to check whether this has changed] > > The method > > procedure TSomething.Do(const a :array of Integer); > > will accept both static arrays and dynamic arrays. > > but overload it > > procedure TSomething.Do(c

RE: [DUG]: int64

2001-02-08 Thread Carl Reynolds
From: Rohit Gupta [mailto:[EMAIL PROTECTED]] > So, is this all stuffed up ? TField doesnt know about it, teh Variant > doesnt work with it. What gives. Is there a second patch to D5 > for it ? Jeff Overcash posted the following to mers.interbase.list last October, as part of a reply to a very

RE: RE: [DUG]: SendMessage and strings

2001-02-08 Thread Carl Reynolds
And for the record, I worried needlessly about reference counting before. I now realise that it is completely safe to pass integer(pchar(mystring)) to a procedure. Reference counting won't free the string in the meantime, not unless the string is also passed as an out or var parameter to the sam

RE: RE: [DUG]: SendMessage and strings

2001-02-08 Thread Carl Reynolds
Sorry if I was slow to reply, but email has been down here since I last sent that message. From: Jason L. Coley [mailto:[EMAIL PROTECTED]] > I tried this one and it didn't work, does this help make any difference > to how I send the string, it mentions the string has to be a long > pointer to a n

RE: [DUG]: SendMessage and strings

2001-02-06 Thread Carl Reynolds
CB_AddString takes a null terminated string, ie. PChar, as an LParam parameter, ie. Integer. You could just cast the string to a pchar, and thence to an integer, but I have a funny feeling that if you do reference counting might destroy it after the cast but before the sendmessage completes. I h

RE: [DUG]: Using Frames

2001-02-04 Thread Carl Reynolds
From: Stephen Bertram [mailto:[EMAIL PROTECTED]] > procedure SetUp; > begin > MyForm1 := TMyForm; > MyForm2 := TMyForm;// This is OK > MyFrame1 := TMyFrame; > MyFrame2 := TMyFrame; // This fails with "Component MyFrame > already exists". Presumably you meant "TMyForm.Create(...)" an

RE: [DUG]: Newbie SQL question

2001-01-31 Thread Carl Reynolds
From: Peter Vroegop [mailto:[EMAIL PROTECTED]] > Is it possible to do a query on the result set of a previous query. If so, how do you go about it? In some SQL dialects you can select query results directly into in-memory temporary tables that you can then query on, or even construct a query that

RE: [DUG]: Join SQL?

2001-01-30 Thread Carl Reynolds
From: David Brennan [mailto:[EMAIL PROTECTED]] > My apologies if I in anyway implied that your brain was superior to the rest > of us - that certainly wasn't my intention! ;-) Well don't do it again. :-) > My point was more that some people find SQL difficult to understand, > especially more com

RE: [DUG]: Join SQL?

2001-01-30 Thread Carl Reynolds
From: David Brennan [mailto:[EMAIL PROTECTED]] >> The issue is not number of words but clarity and readability. >> Sometimes more words increase readability. But not always. > > I agree entirely. In the case of ansi join syntax, when laid out the > way I have I think it does improve clarity parti

RE: [DUG]: Join SQL?

2001-01-29 Thread Carl Reynolds
From: David Brennan [mailto:[EMAIL PROTECTED]] > I can just hear Carl saying "... yes but look at all those unnecessary > words...". However who are we (as Delphi programmers) to complain about > unnecessary words? How about Begin, End, Then etc. If it was all so > important to us then we should b

RE: [DUG]: Join SQL?

2001-01-29 Thread Carl Reynolds
From: Neven MacEwan [mailto:[EMAIL PROTECTED]] > You old diehard, do you ever do anything other than an inner join? Yes, but even now I would prefer to use Informix's nice old format for outer joins, which I used for years. Actually I find just about any proprietary (non-ansi) version of outer j

RE: [DUG]: Join SQL?

2001-01-29 Thread Carl Reynolds
From: "Carl Reynolds" <[EMAIL PROTECTED]> >> [lots of foaming and ranting against ansi join syntax] From: Mark Howard [mailto:[EMAIL PROTECTED]] > I must admit all of my SQL is of the "old style" which I also find much more > readable than the ANSI syntax.

RE: [DUG]: TDataSet.OnBeforeScroll

2001-01-29 Thread Carl Reynolds
That's just a typo. OnBeforeScroll runs before scrolling and OnAfterScroll after. But if the dataset needs to be posted before scrolling, the post will occur before OnBeforeScroll gets fired. What is it you're trying to do? Cheers, Carl -Original Message- From: Mark Derricutt [mailto:

RE: [DUG]: Join SQL?

2001-01-28 Thread Carl Reynolds
From: Neven MacEwan [mailto:[EMAIL PROTECTED]] > also clearer if you use ansi join syntax (which we all should do), Personally I think that ansi join syntax sucks the big kumera. All that JOIN...ON stuff is such bollocks! I've never yet encountered an SQL dialect so poorly constructed that it c

RE: [DUG]: FW: Storing enumerated sets in a db...

2001-01-24 Thread Carl Reynolds
From: Colin Fraser [mailto:[EMAIL PROTECTED]] > Thanks, that did it, I was casting to an integer (which works for enumerated > types) and not to a Byte... > > The Byte did the trick... Be careful. If you add more elements to your type, byte might need to become word, or integer or something eve

RE: [DUG]: FW: Storing enumerated sets in a db...

2001-01-24 Thread Carl Reynolds
From: Colin Fraser [mailto:[EMAIL PROTECTED]] > So if I had a type TSomeTime = set of (stOne, stTwo, stThree), > then I had a var SomeType: TSomeType, > then I could go something like SomeType := [stOne, stTwo] and somehow > convert this to an integer to store in a DB... > > But, the compiler doe

RE: [DUG]: MDI, menus and $400

2001-01-15 Thread Carl Reynolds
What is the fix? It may well be possible to convert it to a patch that can be applied. Cheers, Carl --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz

RE: [DUG]: Copying Chars

2001-01-14 Thread Carl Reynolds
From: James Sugrue [mailto:[EMAIL PROTECTED]] > Yeah, thats what I am doing, but I thought there might be another way! Another way: var LString: string; SetLength(LString, 31); // chars 10 to 40 inclusive = 31 chars Move(ByteArray[10], LString[1], 31); // copy from char 10 Cheers, Carl ---

RE: [DUG]: Where should we put packages

2001-01-09 Thread Carl Reynolds
From: Mark Derricutt [mailto:[EMAIL PROTECTED]] > Reding more into it I see you're meaning absolute directory structure > (drive/rootpath), thats bad. Yeah, it's completely unnecessary. I should really lobby harder to have it changed... Cheers, Carl -

RE: [DUG]: Where should we put packages

2001-01-09 Thread Carl Reynolds
From: Mark Derricutt [mailto:[EMAIL PROTECTED]] >> FreeVCS also works well, except it mandates that all developers need to use >> the SAME DIRECTORY STRUCTURE for a project, including the location on disk - > > Frankly, I should hope you ARE using the same directory structure, as a It's a pain in

RE: [DUG]: DBLookup Combos

2001-01-07 Thread Carl Reynolds
From: Mark Derricutt [mailto:[EMAIL PROTECTED]] > Hi, is it possible to limit what is shown in the drop-down of a > DBLookupCombo? A good way is to assign a filter to the query in the OnDropDown event and remove it in the OnCloseUp. Cheers, Carl --

RE: [DUG]: Is Delphi dead?

2001-01-04 Thread Carl Reynolds
From: Mark Derricutt [mailto:[EMAIL PROTECTED]] > Is there much work for C++ Builder (specific) based projects? > I see alot for c++ but is their much for builder itself? Well, IIRC at BorCon last November they said that C++ Builder accounted for only 1% of Borland's sales, so I guess not. Anyon

RE: [DUG]: Is Delphi dead?

2001-01-04 Thread Carl Reynolds
From: Corey Murtagh [mailto:[EMAIL PROTECTED]] > Personally I don't use Delphi (much). I use Borland C++ Builder - > Delphi with a C++ compiler mated to it. I dabble in a little OP when > I need to (components and so forth), but all said I would take C++ > over Pascal any day of the week. When

RE: [DUG]: Is Delphi dead?

2001-01-03 Thread Carl Reynolds
From: Martin Paulo [mailto:[EMAIL PROTECTED]] > I am also very pleased to see C#. It validates my decision to adopt Delphi > all those years ago! It will also, as you state, force the multitude to > become aware of the power of Delphi. However they will know it as the power > of C#! And having lea

RE: [DUG]: Is Delphi dead?

2001-01-03 Thread Carl Reynolds
From: Martin Paulo [mailto:[EMAIL PROTECTED]] > I think, there may be a Delphi -> C# Stampede. I'm very pleased to see C#. Firstly, it's tantamount to an admission by M$ that Delphi, despite it's differences to VC++ and VB, has been a much larger success than anticipated and now M$ want a piece

RE: [DUG]: Interbase

2000-12-19 Thread Carl Reynolds
From: Mark Derricutt [mailto:[EMAIL PROTECTED]] > > when DBExpress (D6) comes out we'll start switching over to that (ie. new > > and improved, more generic weird bugginess :-). > > I wonder, being that DBExpress is the CLX based components, does you're > entire project have to be ported to CLX i

RE: [DUG]: Interbase

2000-12-18 Thread Carl Reynolds
http://www.interbase2000.org/tools.htm#odbc Cheers, Carl From: Phil Scadden [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 19 December 2000 1:16 PM To: Multiple recipients of list delphi Subject: Re: [DUG]: Interbase Interesting thread. Has Interbase got an ODBC driver yet? For many applications, t

RE: [DUG]: Interbase

2000-12-18 Thread Carl Reynolds
> > isn't postgreSQL *nix only? > > see http://www.postgresql.org/docs/admin/supported-platforms.htm Whew, that was a long-winded "yes". :-) Cheers, Carl --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTEC

RE: [DUG]: Interbase

2000-12-18 Thread Carl Reynolds
From: Neven MacEwan [mailto:[EMAIL PROTECTED]] > > I used to say "an SQL language stands or falls on the strength of > > it's optimiser". But since Interbase's optimiser is a steaming heap > > of dung, > > but I'm confused..what part of IB did you enjoy? :-) I never discuss the good points of th

RE: [DUG]: Interbase

2000-12-18 Thread Carl Reynolds
I'm enjoying this thread. :-) I'll just add that that I've been using Interbase for over half of this year (seems like forever really) and I have mixed feelings about it. I used to say "an SQL language stands or falls on the strength of it's optimiser". But since Interbase's optimiser is a stea

RE: [DUG]: Kylix Demo

2000-12-11 Thread Carl Reynolds
From: Nic Wise [mailto:[EMAIL PROTECTED]] > The new dbExpress stuff only does unidirectional cursors - ie, top to > bottom. It then is supposed to connect to a MIDAS CDS-like thing that > cache's results in memory so you can do table-like things, ie forward and > backwards. > > But I couldn't fin

RE: [DUG]: Compile 16bit applications

2000-12-05 Thread Carl Reynolds
So things are different where you are than they are in NZ, eh? Well I suggest that you ask your local Delphi list for help then, because I wouldn't expect any more from this one IIWY. Cheers, Carl -Original Message- From: gajo [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 6 December 2000

RE: [DUG]: Another D5 compiler bug ?

2000-12-03 Thread Carl Reynolds
From: Rohit Gupta [mailto:[EMAIL PROTECTED]] > Has anyone come across a compiler bug in D5.. > > for I := 0 to StringList.Count-1 > do blah blah.. > > I starts at 1. No, its not optimization, thats turned off. the code > does not infact execute for I = 0, its not the IDE debugger either. > >

RE: [DUG]: Bitmap transparency

2000-11-30 Thread Carl Reynolds
Yeah, that sounds easiest. Just a note: you'll have to use AddMasked(Bitmap, clPink(?)) in order to make the mask work. Cheers, Carl -Original Message- From: Trevor Jones [mailto:[EMAIL PROTECTED]] Sent: Friday, 1 December 2000 2:02 PM To: Multiple recipients of list delphi Subject: Re:

RE: [DUG]: Bitmap transparency

2000-11-30 Thread Carl Reynolds
From: Luke Pascoe [mailto:[EMAIL PROTECTED]] > I've got 4 little bitmaps, each with a transparent reqion defined > by the color pink. Ah, the well known "transparent pink". > I also have a string grid which I draw manually. I want to copy > these little bitmaps to certian cells at will, which is

RE: [DUG]: Appearance of disabled controls

2000-11-23 Thread Carl Reynolds
From: Deepak Shenoy [mailto:[EMAIL PROTECTED]] > > What happens if you don't set ES_Multiline? > > In the documentation (Win32.hlp) it's given that "ES_RIGHT - Right-aligns > text in a multiline edit control". I had tried it without ES_RIGHT many > years ago (Win95 days) and it didn't work withou

RE: [DUG]: Appearance of disabled controls

2000-11-22 Thread Carl Reynolds
> You will need to set ES_MULTILINE also in order for Right Aligning to work > properly. Remember then to somehow "blank" out the enter key otherwise it'll > look weird. I noticed that the Raize edit did this when right aligned (ES_Right or ES_Multiline). What happens if you don't set ES_Multili

RE: [DUG]: Appearance of disabled controls

2000-11-22 Thread Carl Reynolds
> It turns out my last email wasn't precise enough. I am playing with > descendents of TDBEdit (TwwDBEdit actually - I'm interested in TEdit as well > but it wasn't what I was testing with). It turns out that TDBEdit (and > TwwDBEdit) have a customised WMPaint procedure which specifically draws >

RE: [DUG]: Appearance of disabled controls

2000-11-21 Thread Carl Reynolds
> Thanks Carl - the chocolate fish is being couriered to you as we speak. Excellent. Mission accomplished. > Couple of comments however. > 1. Throwing away the WM_Enable messages works well but you need to let at > least one WM_Enable True message through (so that it thinks it is enabled). > No

RE: [DUG]: Appearance of disabled controls

2000-11-21 Thread Carl Reynolds
> So, does anyone know how to "persuade" windows to draw disabled > controls/windows, particularly Edit windows, with black (not dark grey) > text? The controls you're talking about respond to the WM_Enable message, which is sent as a result of disabling the control (Enabled := False -> EnableWin

RE: [DUG]: Is Everyone dead or something ?

2000-11-21 Thread Carl Reynolds
From: Sandeep [mailto:[EMAIL PROTECTED]] > > then Java compiles to a virtual machine, which could be made real, > > and Delphi compiles to a real machine, that can be virtual. No real > > difference. Its just that Java's machine is usually software, and > > Delphi's is usually hardware. > > A

RE: [DUG]: Appearance of disabled controls

2000-11-21 Thread Carl Reynolds
(My tone obviously wasn't forceful enough the first time. :-) -Original Message- From: Mailer-Daemon [mailto:[EMAIL PROTECTED]] Sent: Thursday, 23 November 2000 11:50 AM To: [EMAIL PROTECTED] Subject: Message rejected by system Transcript of session follows Re

RE: [DUG]: Problems with CloneCursor

2000-11-20 Thread Carl Reynolds
> From: David Brennan [mailto:[EMAIL PROTECTED]] > So I need a way of checking the records in cdsPayments without disturbing > it's state (for example the user might be halfway through entering a new > payment - I can't cancel or post this record for them). Obviously I can't > directly use cdsPaym

RE: [DUG]: [Q] KeyPreview, KeyDown, DB Aware Controls?

2000-11-12 Thread Carl Reynolds
>From: Donovan J. Edye [mailto:[EMAIL PROTECTED]] >However even though I am "swallowing" the keystroke it is still getting >processed by the DB aware control I am currently focussed on (DBEdit, DGGrid >etc.) How do I stop the keystroke getting "through to" the DB aware control? Don't call inherit

RE: [DUG]: Object Construction

2000-11-07 Thread Carl Reynolds
Not really. If you have type TBase = class(TObject); TFoo = class(TBase); TBar = class(TFoo); then when you call the constructor you are specifying the class at that point anyway - you don't need to provide it as a parameter. Eg. TFoo.Create is fine - passing the class as a parameter

RE: [DUG]: Event function names...

2000-10-30 Thread Carl Reynolds
From: Mark Derricutt [mailto:[EMAIL PROTECTED]] > I have a component that includes a TCollection, my collection item as an > OnExecute event and a Name property, now, when I create the event code > from the object inspector I get a new method called > PyGDMEvents9Execute() - where 9 is item 9, log

RE: [DUG]: Free inside Create

2000-10-26 Thread Carl Reynolds
From: Nello Sestini [mailto:[EMAIL PROTECTED]] > So really - this "replace" trick isn't as remarkable as it first > sounded. > > "replaced" really just means "hides" - but the other function is still > "there" and available via typecasting etc. Correct Despite the cuteness factor (8 out of 10

RE: [DUG]: Free inside Create

2000-10-26 Thread Carl Reynolds
Hi Nello, The key words in that statement are "in the derived class". Yes, SomeProc will call TBase.DoSomething, not TDerived.DoSomething. That's static methods for ya - no way to avoid it. :-) Cheers, Carl -Original Message- From: Nello Sestini [mailto:[EMAIL PROTECTED]] Sent: Friday

RE: [DUG]: Free inside Create

2000-10-26 Thread Carl Reynolds
From: Aaron Scott-Boddendijk [mailto:[EMAIL PROTECTED]] > Whilst this may stop the code reaching the constructor the compiler will > still compile a line in a different unit >x := TDescendant.Create; > even if the descendant does not declare a constructor... The program will > run using the co

RE: [DUG]: Free inside Create

2000-10-26 Thread Carl Reynolds
... and I probably should have mentioned, the implementation of Tx.Create should be constructor Tx.Create; begin inherited Create; end; Cheers, Carl --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED

RE: [DUG]: Free inside Create

2000-10-26 Thread Carl Reynolds
From: Nello Sestini [mailto:[EMAIL PROTECTED]] > Even with that, it would be difficult to prevent a derived class from > calling the wrong Create though since you can't "demote" a method from > protected to private. Well, actually, you can, using a trick. The trick is to know that (from the hel

RE: [DUG]: Can anyone tell me what is the following code meaning? (By the way, that is not important)

2000-10-19 Thread Carl Reynolds
>From the help on type (topic: Type Identity), Type identity is almost straightforward. When one type identifier is declared using another type identifier, without qualification, they denote the same type. Thus, given the declarations type T1 = Integer; T2 = T1; T3 = Integer; T4 = T2;

RE: [DUG]: Last Active Control on a form

2000-10-19 Thread Carl Reynolds
From: Neven MacEwan [mailto:[EMAIL PROTECTED]] > I'm trying to save the last focused control on a form so when I reactivate > it This control has focus The focused control is TForm.ActiveControl, and when you call Form1.SetFocus it calls Form1.ActiveControl.SetFocus internally. So normally this

RE: [DUG]: Query Parameters

2000-10-17 Thread Carl Reynolds
From: Neven MacEwan [mailto:[EMAIL PROTECTED]] > But in the example you gave the parameter is subst as a literal not a col > name > ie equiv to > > select name, 1 from animals.dbf Er, Neven, that's the whole point. :-) Here's what Stacey said: > I wanted > > select :param, field > from table

RE: [DUG]: Query Parameters

2000-10-17 Thread Carl Reynolds
From: Stacey Verner [mailto:[EMAIL PROTECTED]] > I wanted > > select :param, field > from table > > to be the same as > > select "bob", field > from table > > Alas, this is not the way it works. Actually, it does work in LocalSQL. Try the following with a TQuery (DBDemos database): select name

RE: [DUG]: Creating PChars

2000-10-09 Thread Carl Reynolds
> From: Jason L. Coley [mailto:[EMAIL PROTECTED]] > Well its pretty obvious that I don't know much about exception handling, > can anyone suggest a good book on exceptions etc. I just try my best to > write code that doesn't bomb out, I'd say handling the errors better > would be a betteer way, an

RE: [DUG]: Creating PChars

2000-10-09 Thread Carl Reynolds
Hi Jason, I'm guessing that you originally had something like type EDCFailed = class(Exception); var PaperNameArray, PaperSizeArray, PaperIDArray: PChar; PaperNameCount := DeviceCapabilities(pDevice, pPort, dc_Papernames, nil, nil); if PaperNameCount = -1 then raise EDCFailed.Create('Bugger

RE: [DUG]: Creating PChars

2000-10-08 Thread Carl Reynolds
> From: Carl Reynolds > Borlandmm.dll is the one with the shared memory manager in it, which also implements GetMem (details in the ShareMem Gee, I'm on form today. I didn't mean to suggest that there is a different shared memory manager, because that would be bollocks - I

RE: [DUG]: Creating PChars

2000-10-08 Thread Carl Reynolds
[Brief pause for a late lunch :-)] > I'd love to know exactly what the problem was, so i could say, hey get > this ***.dll and fix their problems that way. The code that generally > gave the errors was when using DeviceCapabilities to find printer Info, > maybe it was just bad print drivers (this

RE: Re: RE: [DUG]: Creating PChars

2000-10-08 Thread Carl Reynolds
Yes, well GetMem is a very fundamental procedure. I mean, the VCL is full of calls to GetMem - Delphi would really fall apart without it (no dynamic array usage would be safe, for example). Obviously you have to watch your step when using it, but if I'd had the number of problems that (I infer)

RE: RE: [DUG]: Creating PChars

2000-10-08 Thread Carl Reynolds
Yes, using PChar, or any pointer type, is dangerous. Using classes is also dangerous - classes are really just pointers, and can point to nothing, you can free them twice, and generally cause all sorts of trouble for yourself. To take your argument to its logical conclusion, would you advocate n

RE: [DUG]: Creating PChars

2000-10-08 Thread Carl Reynolds
nd StrDispose the way to go, or is GetMem and FreeMem >> fine... or doesn't it matter??? > > From: Carl Reynolds [mailto:[EMAIL PROTECTED]] > I think the reason StrAlloc is marked as being in decline is just that > explicit creation of PChars is in decline. That's because

RE: [DUG]: Creating PChars

2000-10-08 Thread Carl Reynolds
I think the reason StrAlloc is marked as being in decline is just that explicit creation of PChars is in decline. That's because you can now use pascal strings (string or AnsiString) in most cases, use SetLength, and pass PChar(MyString) as needed. But when you do need to create PChars, either S

RE: [DUG]: Simple Custom Control Programme needed

2000-10-05 Thread Carl Reynolds
From: Luke Pascoe [mailto:[EMAIL PROTECTED]] >In case anyone was going to flame this guy (not that I think they would) he What, flame a job offerer?! Cheers, Carl --- New Zealand Delphi Users group - Delphi List - [EMAIL

RE: [DUG]: ....About a ClientDataSet

2000-10-05 Thread Carl Reynolds
From: Moises Lopez [mailto:[EMAIL PROTECTED]] >i have a master detail relationship with >ClientDataSets (ADO - D5), and since the detail tables >are kind of huge (about 700 records per master, just >in case) i tried to limit that by setting the >packet records property of the detail to about 1

RE: [DUG]: Re: Interbase

2000-10-03 Thread Carl Reynolds
Dialect 3 of IB6 supports double-quotes around fieldnames, eg. "Date", "Time", "Action", "Message", "Hi there mum". You'll have to change any SQL statements that refer to such fields to include the quotes. Cheers, Carl -Original Message- From: Rohit Gupta [mailto:[EMAIL PROTECTED]] Sent

RE: [DUG]: Sorting a Collection

2000-09-25 Thread Carl Reynolds
From: Neven MacEwan [mailto:[EMAIL PROTECTED]] >I'd hate to mention how a ForEach Method would be useful (an save my OOS) > >ASet.ForEach(Method) Hey, just encapsulate each set in a class! I mean, you don't have Byte.ForEachBit(AMethod) either, do you?! ;-) You can have a foreach procedure of s

RE: [DUG]: How to stop mouse cursor from changing

2000-09-14 Thread Carl Reynolds
From: Paul Heinz [mailto:[EMAIL PROTECTED]] >Of course, the only way to be truly happy is to build your own - we didn't >regret building our own IB TDatasets, but we're wierd that way :-) I don't suppose you'd consider releasing them as OpenSource? Excellent diatribe, BTW. Cheers, Carl

RE: [DUG]: How to stop mouse cursor from changing

2000-09-14 Thread Carl Reynolds
Thanks for that IBO analysis, Max, it was great. One point though, about the needing to use Jason's native controls, Jason not too long ago made claims that there have been advancements with his TIBOQuery/TIBOTable dataset components, such that you can purportedly take an existing BDE application

RE: [DUG]: How to stop mouse cursor from changing

2000-09-14 Thread Carl Reynolds
From: Nic Wise [mailto:[EMAIL PROTECTED]] >there again, if you have source, you can play with it. :) And both have >source. True. And it is possible to make a silk purse out of a sow's ear, because some smart-arse chemist actually did it. (But when they upgraded the pig to a newer model he had

RE: [DUG]: How to stop mouse cursor from changing

2000-09-14 Thread Carl Reynolds
From: Nic Wise [mailto:[EMAIL PROTECTED]] >From what I've heard, IBO has a few fundermental problems too. > >:) I'd wondered about that. Nobody's been willing to tell me IBO's shortcomings. :-) On the other hand, there are a lot of people who will confidently tell you that IBO is better than I

RE: [DUG]: How to stop mouse cursor from changing

2000-09-14 Thread Carl Reynolds
From: Cheng Wei [mailto:[EMAIL PROTECTED]] >You are right, the problem could be that I set it back to crDefault, how >come it works much better with BDE approach? Um, because the BDE components are much better written than the IBX components, which are a bit, er, crap on the inside and may always

RE: [DUG]: How to stop mouse cursor from changing

2000-09-14 Thread Carl Reynolds
From: Cheng Wei [mailto:[EMAIL PROTECTED]] >>- if you set your cursor to crHourGlass in advance, there will be no >>flicker, ie. >> >> Screen.Cursor := crHourGlass; >> try >>for i := 1 to Lots do >> IBQuery1.ExecSQL; >>{ The above line would cause flicker, by changing the cursor to crHo

RE: [DUG]: How to stop mouse cursor from changing

2000-09-14 Thread Carl Reynolds
From: Cheng Wei [mailto:[EMAIL PROTECTED]] >The mouse cursor keeps changing when the app accesses the IB db using IBX, I >couldn't find any property that you can set to stop this from happening. Options - using IBO, it has such options, and BeginBusy and EndBusy to control this behaviour - if y

RE: [DUG]: Fw: D5.01 MDI child behaviour

2000-09-13 Thread Carl Reynolds
This thread was a while ago, but I just heard about the following site today (concerning some bugs in MDI): http://www.jrsoftware.org/buglist/generated/vcl-MDI.htm Cheers, Carl --- New Zealand Delphi Users group - Delphi

RE: [DUG]: Clearing the keyboard buffer

2000-09-13 Thread Carl Reynolds
From: Nello Sestini [mailto:[EMAIL PROTECTED]] >> repeat until PeekMessage(MsgStruct, Form1.Handle, WM_KEYFIRST, >> WM_KEYLAST, PM_REMOVE) = 0; >> >> (warning - untried) > > i think it will stop when a > non - kbd message shows up even if there's another keyboard > event buffered after it. It

RE: [DUG]: Clearing the keyboard buffer

2000-09-13 Thread Carl Reynolds
From: Phil Dewar [mailto:[EMAIL PROTECTED]] > Simple question please: > How should you clear the keyboard type ahead buffer ? > TIA, Phil From: Nic Wise [mailto:[EMAIL PROTECTED]] >I'm most likely wrong, but I dont think you can under windows - the >keyboard is a shared device, and all you get ar

RE: [DUG]: overriding TControl protected methods

2000-09-13 Thread Carl Reynolds
From: Patrick Dunford [mailto:[EMAIL PROTECTED]] >Thanks, that did the trick. Oops, maybe premature... ":-) >Why does TButton not use the csClickEvents in the ControlStyle? Because the mechanism through which you receive clicks for a TButton is different - it generates click events from a BN_CL

RE: [DUG]: overriding TControl protected methods

2000-09-12 Thread Carl Reynolds
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] >This is from a blank form, at runtime it creates a button having overridden the >DblClick method inherited from TControl. > >TControl calls the DBlClick method when the control is double clicked. It isn't >reimplemented in its descendant TButto

RE: [DUG]: Collection Items

2000-09-11 Thread Carl Reynolds
Not exactly as you put it, not without modifying TCollection and TCollectionItem. You can however have a collection as a property of the collection item, which suffices. ie. +_Collection |___CollectionItem + _Collection (property of

RE: [DUG]: Question on style for you SQL Gurus

2000-08-31 Thread Carl Reynolds
Try this one for size: select * from hardone h1 where not exists ( select 1 from hardone h2 where h2.gmt_event > h1.gmt_event) BTW, there is a database list for Delphi database/SQL specific questions: [EMAIL PROTECTED] Mail listserv with "subscribe database" in the body. Cheers, Carl

RE: [DUG]: Machine Cache

2000-08-28 Thread Carl Reynolds
From: Eion McIntosh (CHCH) [mailto:[EMAIL PROTECTED]] >> Try putting in >> >> WritePrivateProfileString('', '', '', ''); > >Sorry this gave a me access violation error at an address in 'ntdll.dll' Well it worked for me a few years ago, but that was in Win95 when having ini file flushing problems

RE: [DUG]: Machine Cache

2000-08-28 Thread Carl Reynolds
Try putting in WritePrivateProfileString('', '', '', ''); after the PDF file is created. This should flush the cache. Cheers, Carl -Original Message- From: Eion McIntosh (CHCH) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 29 August 2000 8:29 AM To: Multiple recipients of list delphi Subj

RE: [DUG]: Fw: D5.01 MDI child behaviour

2000-08-23 Thread Carl Reynolds
>From: Belding Computing [mailto:[EMAIL PROTECTED]] >I once had some fish and got ill. But I still love fish 'n chips. Ah, but with MDI you only have stinky fish on the menu, and in the end the mercury gets to your head. :-) These days many of the good points of MDI behaviour are available witho

RE: [DUG]: Component Question.....

2000-08-22 Thread Carl Reynolds
>From: Donovan J. Edye [mailto:[EMAIL PROTECTED]] >2. When I drop a TNamNAMEditor on a form: > - A single click does not select it > - I can not left mouse click drag it on the form > How do I solve that? Not exactly solve, but you can select your editor by pressing escape while on

RE: [DUG]: Three Auckland Delphi Jobs/Contracts...

2000-08-22 Thread Carl Reynolds
Heh heh. Touché. Cheers, Carl >From: Mark Vrankovich [mailto:[EMAIL PROTECTED]] >Hi there guys again > >> I'm sure we'd all like to know what "excellent rates" equates to. >> Will you share that with us? It might save everyone time. > >Carl I would like to answer that question firstly in my

RE: [DUG]: Three Auckland Delphi Jobs/Contracts...

2000-08-22 Thread Carl Reynolds
>From: Mark Vrankovich [mailto:[EMAIL PROTECTED]] >We have three Delphi permanent/contract positions available with a very good >company offering excellent rates. > >You must have three years Delphi development experience. > >Please call or email me if you would like to know more. Hi Mark I'm su

RE: [DUG]: delphi certification.

2000-08-20 Thread Carl Reynolds
I think they're arranging for people to be able to take the certification exam at Borcon 2000 in Sydney this November, if you're going. Cheers, Carl -Original Message- From: Matthew Comb [mailto:[EMAIL PROTECTED]] Sent: Monday, 21 August 2000 12:54 PM To: Multiple recipients of list delp

RE: [DUG]: My Documents directory

2000-08-16 Thread Carl Reynolds
ments directory Quoting Carl Reynolds <[EMAIL PROTECTED]>: > >Check out the registry: > >"HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Explorer/User > >Shell Folders" > > And for other users that will be HKEY_USERS//... instead of > HKEY_

RE: [DUG]: My Documents directory

2000-08-16 Thread Carl Reynolds
>Check out the registry: >"HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Explorer/User >Shell Folders" And for other users that will be HKEY_USERS//... instead of HKEY_CURRENT_USER/... My /s should probably be \s but hey. Cheers, Carl -

RE: [DUG]: My Documents directory

2000-08-16 Thread Carl Reynolds
Hi Stacey, how's it going? Check out the registry: "HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Explorer/User Shell Folders" (pauses for breath). The key you want is "Personal", but there are some other useful settings there too. Cheers, Carl -Original Message- From: St

RE: [DUG]: Interbase 6 problem?

2000-08-12 Thread Carl Reynolds
The new IBConsole is broken. Download an older version (308) from http://www.interbase.com/open/downloads/ib_download.html Cheers, Carl -Original Message- From: David O'Brien [mailto:[EMAIL PROTECTED]] Sent: Friday, 11 August 2000 12:08 PM To: Multiple recipients of list delphi Subject

[DUG]: Fun with Listbox.Sorted

2000-08-08 Thread Carl Reynolds
A rare, but potentially nasty, case to beware of: // Does not work procedure TForm1.SortListBox(AListBox: TListBox); begin AListBox.Sorted := True; // to sort the contents AListBox.Sorted := False; // eg. to allow drag/dropping of items end; The code as written doesn't work. Set

RE: [DUG]: Array of variant: problems

2000-08-08 Thread Carl Reynolds
I've submitted this as a bug (similar to #62554 listed in compiler\delphi\code generation\optimization, but not fixed in Delphi 5). A workaround is to declare the array as const. Cheers, Carl -Original Message- From: Carl Reynolds [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 8 August

[DUG]: Array of variant: problems

2000-08-07 Thread Carl Reynolds
I have a function that takes an array of variant constructed at runtime, but if the resultant array length is zero I get insurmountable problems. A simple example: procedure Execute(A: array of variant); begin ShowMessage('Exiting...'); Exit; ShowMessage(A[0]); // This never runs, but ANY

Missing message: RE: [DUG]: Coverting Binary Streams

2000-08-03 Thread Carl Reynolds
I sent this message to the list within minutes of the other but it didn't arrive, so here it is again (out of date and no longer pertinent, but for the sake of completeness... :-) Cheers, Carl -Original Message- From: Carl Reynolds Sent: Friday, 4 August 2000 11:07 AM To: &#

  1   2   3   >