Re: [DUG] GIF Support?

2004-02-18 Thread Phil Middlemiss
Have you considered giving GDI+ a look? It supports all sorts of nice drawing functions in a very accesssible way. Cheers, Phil. - Original Message - From: Myles Penlington To: '[EMAIL PROTECTED]' Sent: Wednesday, February 18, 2004 5:57 PM Subject: [DUG] GIF

[DUG] Delphi DirectX9 guru contract

2004-02-22 Thread Phil Middlemiss
If anyone out there is a gun at Delphi/DirectX development (not just familiar - an expert!) and would like a to discuss the development of a dynamic terrain engine the please e-mail me off the list. At this stage we are just trying to get a feel for what is involved and would love to discuss the

Re: [DUG] Delphi News

2004-03-11 Thread Phil Middlemiss
Does "Next major release" mean that version 9 will have win32 + .Net, or does it mean the next next update patch for 8 will have win32 + .Net? Phil. . Our plans include moving Win32 support into the "Galileo" IDE along side Delphi .NET in the next major release -

Re: [DUG] HOW TO STOP FORM MOVING

2004-03-21 Thread Phil Middlemiss
You could set it's border style to bsNone (as long as you don't nedd a title bar). Phil. - Original Message - From: Rohit Gupta [EMAIL PROTECTED] To: NZ Borland Developers Group - Delphi List [EMAIL PROTECTED] Sent: Monday, March 22, 2004 1:46 PM Subject: [DUG] HOW TO STOP FORM MOVING

Re: [DUG] Problem using a dll.

2004-04-04 Thread Phil Middlemiss
The pdLatNew etc can simply be desribed as Doubles but with the var qualifier - although I don't think that necessarily is the issue. I suspect the problem lies in how you are preparing the various variables and values when you call the routine. Can you provide some code that shows how you are

Re: [DUG] StringGrid problems

2004-04-05 Thread Phil Middlemiss
The OnClick event does indeed fire even when you navigate using keys. If you want to carry out code specific to the mouse being clicked then there are at least two things you can do: 1) set a flag on the key down event that you can check in the OnClick event - ugly 2) just use the OnMouseDown

Re: [DUG] TCP/IP or MailSlot?

2004-04-14 Thread Phil Middlemiss
Jeremy, I would recommend going with TCP/IP. The Indy components make this a snap (Heck, the demo code is 90% what you need) and you keep your future options open for more complex transfers of information, security, etc etc. Phil. - Original Message - From: vss [EMAIL PROTECTED] To:

[DUG] Converting some code from C

2004-04-18 Thread Phil Middlemiss
I'm converting some code from some ugly C. The code defines one particular array, and a constant like this: static float snorm[169]; static float *p = snorm; and then later has an assignment: *snorm = 1.0; and then again later (n is an integer iterator): *(snorm+n) =

Re: [DUG] Converting some code from C

2004-04-18 Thread Phil Middlemiss
++ will increment the pointer to the next array element (probably the reason p is used rather than snorm directly). Terry Phil Middlemiss wrote: I'm converting some code from some ugly C. The code defines one particular array, and a constant like this: static float snorm[169]; static float *p

Re: [DUG] Converting some code from C

2004-04-18 Thread Phil Middlemiss
(probably the reason p is used rather than snorm directly). Terry Phil Middlemiss wrote: I'm converting some code from some ugly C. The code defines one particular array, and a constant like this: static float snorm[169]; static float *p = snorm; and then later ha

Re: [DUG] Converting some code from C

2004-04-19 Thread Phil Middlemiss
Thanks Terry, actually it turned out that it was a multiplication right next to a regular pointer indirection (ie x * *p(blahblah)). rant The code was writen in 1990 and released by the US National Geophysical Data Center and it's as ugly as sin. I don't know whether it is typical of

Re: [DUG] Converting some code from C

2004-04-19 Thread Phil Middlemiss
If the variances are minimal then I don't really need them. All I am doing is providing an automatically calculated magnetic declination for any location in NZ. I know that the total variance across the country is only about 2-3 degrees (although this can be quite significant over long distances),

Fw: [DUG] Converting some code from C

2004-04-20 Thread Phil Middlemiss
That is truly amazing. I don't know whether I'm happy or sad that I don't think I'm capable of producing similar source code. Phil. - Original Message - From: Terry To: NZ Borland Developers Group - Delphi List Sent: Tuesday, April 20, 2004 9:49 AM Subject:

Fw: [DUG] Converting some code from C

2004-04-20 Thread Phil Middlemiss
Why forget it if it is a compas? I (apparently incorrectly) assumed that a compas *would* be sensitive. If you take a standard marine chart and want to plot a course based on a bearing then you may or may not be taking magnetic declination into account (ie, true north vs magnetic north). In NZ,

Re: Fw: [DUG] Converting some code from C

2004-04-20 Thread Phil Middlemiss
Just your typical PHD type project. :P Phil. - Original Message - From: Terry To: NZ Borland Developers Group - Delphi List Sent: Wednesday, April 21, 2004 9:41 AM Subject: Re: Fw: [DUG] Converting some code from C Hey, at least you're not working in

Re: Fw: [DUG] Converting some code from C

2004-04-20 Thread Phil Middlemiss
OK, so basically I'll just stick to the IGRF model. Thanks for the discussion though, it helped pull a few things together in my own understanding. BTW, since this seems to be an area that you have expertise in, do you happen to have a formula to calculate an end point (lat, long) given a start

Re: [DUG] Possible solutions

2004-04-21 Thread Phil Middlemiss
Title: Message Jeremy, The Indy threads shouldn't be an issue.eg, the Server receives data from the client, sends something out of the comport and sits there doing Application.ProcessMessages until it is ready to send data back (presumably that it has received from the com port)- all in the

Re: Fw: [DUG] Converting some code from C

2004-04-21 Thread Phil Middlemiss
Actually, as you pointed out, a rhumb line is the straight line, but if you follow a constant bearing (eg, make sure that you are heading 20deg at all times) then you will not be following a straight line (although it's all relative to the projection you use) because of the curvature of the earth

Re: Fw: [DUG] Converting some code from C

2004-04-21 Thread Phil Middlemiss
Bah! Just when I thought I had it figured out! Oh well, at least now I get it. Thanks for that Phil. Very helpful. Cheers, Phil. - Original Message - From: Phil Scadden [EMAIL PROTECTED] To: NZ Borland Developers Group - Delphi List [EMAIL PROTECTED] Sent: Thursday, April 22, 2004 10:19

Re: [DUG] Component syntax question

2004-05-13 Thread Phil Middlemiss
Alistair, If you want to fully support the MouseUp event, propogated to the ballooncontrols then you should derive TBallonControl from TControl, rather than TComponent. TControl has mouse handling fully supported and your TBalloonControl will handle mouse clicks fine. To add custom behaviour to

Re: [DUG] 2-way communication

2004-04-28 Thread Phil Middlemiss
The TCP Client and Server demos (should have been installed somewhere in the Delphi directory) are pretty straight forward. I would recommend that you take a closer look at them to try and understand what is going on. It doesn't get much simpler. Cheers, Phil. - Original Message

Re: [DUG] Indy - really simple question

2004-05-19 Thread Phil Middlemiss
Yeah, it needs to be thread safe. I'd show you how to do that really simply but... I'm feeling lazy too. Just kidding. Declare a private field of type TRTLCriticalSection. In the OnCommandGet method surround any code that accesses databases, other fields etc with a TryEnterCriticalSection and a

Re: [DUG] Encryption

2004-05-31 Thread Phil Middlemiss
Also be aware that some mathematical routines work differently in php than Delphi - for example rounding numbers using Delphi is done according to Bankers Rounding rules (what we are used to), whereas in php rounding a number half way between two integers (eg 1.5, 2.5 etc) will round to the even

Re: [DUG] Encryption

2004-05-31 Thread Phil Middlemiss
Group - Delphi List [EMAIL PROTECTED] Sent: Tuesday, June 01, 2004 2:05 PM Subject: RE: [DUG] Encryption What you have described for PHP is Banker's Rounding - and Delphi does it too. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Phil Middlemiss

[DUG] USB communication

2004-06-24 Thread Phil Middlemiss
I need to support a USB device (Garmin GPSRs). Up till now only RS-232 support has been required, but USB is becoming more common now. I'm familiar enough with the COM communication, but I'm not sure what is necessary to to communicate across a USB bus. I have the SDK from Garmin, which just

Re: [DUG] USB communication

2004-06-24 Thread Phil Middlemiss
http://www.eltima.com/products/vspdallinone/ -Original Message- From: Phil Middlemiss [mailto:[EMAIL PROTECTED] Sent: Friday, 25 June 2004 12:06 p.m. To: [EMAIL PROTECTED] Subject: [DUG] USB communication I need to support a USB device (Garmin GPSRs). Up till now only RS-232

Re: [DUG] USB communication

2004-06-24 Thread Phil Middlemiss
Message- From: Phil Middlemiss [mailto:[EMAIL PROTECTED] Sent: Friday, 25 June 2004 1:25 p.m. To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] USB communication Really? The units usually come with a CD (the GPSmap 60cs did) with a driver on it, and when the unit

Re: [DUG] USB communication

2004-06-27 Thread Phil Middlemiss
Hi Alan, thanks for that. I think I'm getting somewhere now - found the right set of API calls to make (more importantly, I think I'm getting a handle on the process involved). I let you know when I get it all going. BTW, the GPSmap 60cs is a thing of beauty. Cheers, Phil. - Original

Re: Re[2]: [DUG] Sundays stupid question

2004-06-27 Thread Phil Middlemiss
Alistar, The default parameters option will not work while the method/procedure is expecting VAR parameters. Also, you cannot overload a method that is declared in the same class - you can only overload in a descendant class. You have to use the overload directive in the base class, and again in

Re: Re[2]: [DUG] Sundays stupid question

2004-06-27 Thread Phil Middlemiss
. -Original Message- From: Phil Middlemiss [mailto:[EMAIL PROTECTED] Also, you cannot overload a method that is declared in the same class - you can only overload in a descendant class. You have to use the overload directive in the base class, and again in the descendant class

Re: [DUG] USB communication

2004-06-27 Thread Phil Middlemiss
OK, I've figured out how to identify the garmin device and retrieve the path to use in CreateFile. The specification details the command values for the DeviceIOControl command, but it refers to Bulk in and out pipes, and the interupt pipes. Are these set up using CreateFile for each one? Cheers,

Re: [DUG] USB communication

2004-06-28 Thread Phil Middlemiss
, Phil. - Original Message - From: Phil Middlemiss [EMAIL PROTECTED] To: NZ Borland Developers Group - Delphi List [EMAIL PROTECTED] Sent: Monday, June 28, 2004 4:10 PM Subject: Re: [DUG] USB communication OK, I've figured out how to identify the garmin device and retrieve the path

Fw: [DUG] Delphi 9 and beyond

2004-07-04 Thread Phil Middlemiss
Hamilton would be good - closer to Rotorua than Auckland. Then again... Rotorua is a nice central location! Phil. - Original Message - From: C Fraser To: 'NZ Borland Developers Group - Delphi List' Sent: Monday, July 05, 2004 2:17 PM Subject: RE: [DUG] Delphi 9 and beyond

Re: [DUG] Delphi 9 and beyond

2004-07-04 Thread Phil Middlemiss
, July 05, 2004 3:21 PM Subject: RE: [DUG] Delphi 9 and beyond I am taking a holiday in Rotorua later this month, I'd be happy to spend an hour somewhere talking about the future for Borland/D9, etc. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Phil

Re: [DUG] Delphi 9 and beyond

2004-07-04 Thread Phil Middlemiss
, I would be happy to present. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Phil Middlemiss Sent: Monday, 5 July 2004 3:55 p.m. To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] Delphi 9 and beyond Great! Are other people around

[DUG] Hello?

2004-07-12 Thread Phil Middlemiss
Is this list still working? Haven't received anything yesterday or today. Phil. ___ Delphi mailing list [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi

[DUG] Database Desktop replacement (with source)

2004-07-12 Thread Phil Middlemiss
Can anyone recommend a replacement for Database Desktop? It's got to have source - I want to see how certain connections are made. Cheers, Phil. ___ Delphi mailing list [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi

Re: [DUG] Test

2004-07-19 Thread Phil Middlemiss
Title: myOffice Email Message hurrah! I got a DUG message. - Original Message - From: Richard Vowles To: NZ Borland Developers Group - Delphi List Sent: Tuesday, July 20, 2004 12:28 PM Subject: RE: [DUG] Test Nope, didn't work. From: [EMAIL PROTECTED]

[DUG] Rotorua Borland directions meeting

2004-07-19 Thread Phil Middlemiss
I'm just organising a venue for Richard's visit to Rotorua (collecting more signiatures on his NDAs). Can I please get an indication of who will be coming to it? Richard has specified any night from Wednesday to Friday next week so now is the time to suggest a date if you have other engagements.

Re: [DUG] Rotorua Borland directions meeting

2004-07-20 Thread Phil Middlemiss
spread it around ;-)) Tracey - Original Message - From: Phil Middlemiss [EMAIL PROTECTED] To: NZ Borland Developers Group - Delphi List [EMAIL PROTECTED] Sent: Tuesday, July 20, 2004 2:52 PM Subject: [DUG] Rotorua Borland directions meeting I'm just organising a venue for Richard's

[DUG] Threads and Win98

2004-07-21 Thread Phil Middlemiss
I have an application that monitors the COM port with a threaded object. Seems to work fine on 2000/XP but not on Win98 (we don't support 95). Does anyone know of any issues with threads and the COM port? cheers, Phil. ___ Delphi mailing list [EMAIL

Re: [DUG] clipboard error

2004-07-22 Thread Phil Middlemiss
- From: Phil Middlemiss [EMAIL PROTECTED] To: NZ Borland Developers Group - Delphi List [EMAIL PROTECTED] Sent: Friday, July 23, 2004 2:20 PM Subject: [DUG] clipboard error I'm getting a cannot open clipboard error sometimes when trying to copy data via OLE from excel. Does anyone know the Excel

Re: [DUG] RE: Delphi Digest, Vol 10, Issue 6

2004-08-04 Thread Phil Middlemiss
Except that analogy breaks the conditions, since the gameshow host is only allowed to open a door with a goat. If there are two players then that would not allways be possible. Phil. - Original Message - From: Nicholas DeLacey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday,

[DUG] Threads

2004-08-24 Thread Phil Middlemiss
Hi all, I have a thread object that, for some reason, the destructor is being called twice. I've stripped the app down to a fairly simple shell around the thread and all I am doing is creating the object that holds onto the thread, and then freeing it. The containing object creates the thread in

Re: [DUG] Threads

2004-08-24 Thread Phil Middlemiss
I've played with setting FreeOnTerminate to False, but in that case I have to manually call Terminate and also manually Free the object - it's a reusable component and I don't want any other components to have to do anything special other than Terminate the thread. Phil. - Original Message

Re: [DUG] Threads

2004-08-24 Thread Phil Middlemiss
. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Phil Middlemiss Sent: Wednesday, August 25 2004 9:23 a.m. To: [EMAIL PROTECTED]; NZ Borland Developers Group - Delphi List Subject: Re: [DUG] Threads I've played with setting FreeOnTerminate

Re: [DUG] RE: [DUG-Offtopic] Byte to Real conversion

2004-08-31 Thread Phil Middlemiss
Here is a very simple conversion from a dynamic byte array to a Single: function BytesToSingle(Data: TByteDynArray; Position: Integer): Single;{-DESCRIPTION: Accepts a byte array and returns a Single.PARAMETERS: The

Re: [DUG] Thread causing whole computer to crash

2004-08-31 Thread Phil Middlemiss
0495 fax 03 377 0496 web www.chreos.com Wild Software Ltd - Original Message - From: Phil Middlemiss [EMAIL PROTECTED] To: NZ Borland Developers Group - Delphi List [EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 4:41 PM Subject: [DUG] Thread causing whole computer to crash

Re: [DUG] Thread causing whole computer to crash

2004-08-31 Thread Phil Middlemiss
Thanks Bevan, I had that in the back of my mind but that would be almost a day's work to put in detailed logging through all the potential places it could happen. Need to narrow it down first I think. Cheers, Phil. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [DUG] Thread causing whole computer to crash

2004-09-01 Thread Phil Middlemiss
Thanks for that Matt, I did have code, but yours is better. I have tried to be careful about critical sections, but like you say - these can be nasty. Cheers, Phil. - Original Message - From: Matt Comb [EMAIL PROTECTED] To: NZ Borland Developers Group - Delphi List [EMAIL PROTECTED]

Re: [DUG] Passing Objects to a DLL

2004-09-07 Thread Phil Middlemiss
. - Original Message - From: Phil Middlemiss To: NZ Borland Developers Group - Delphi List Sent: Wednesday, September 08, 2004 4:47 PM Subject: [DUG] Passing Objects to a DLL When an object is passed to a DLL it comes across fine

Re: [DUG] Passing Objects to a DLL

2004-09-08 Thread Phil Middlemiss
by appending the version number to the filename. If you have to stick to DLL's try using interfaces and query for an interface rather than whether an object belongs to a hierarchy. Interface querying uses GUID's and not VMT pointers. From: Phil Middlemiss [EMAIL PROTECTED] Thanks Max, I

Re: [DUG] Passing Objects to a DLL

2004-09-08 Thread Phil Middlemiss
. - Original Message - From: Phil Middlemiss [EMAIL PROTECTED] To: NZ Borland Developers Group - Delphi List [EMAIL PROTECTED] Sent: Thursday, September 09, 2004 8:27 AM Subject: Re: [DUG] Passing Objects to a DLL We have a plugin mechanism that we are using the DLLs for. We looked

Re: [DUG] Passing Objects to a DLL

2004-09-08 Thread Phil Middlemiss
Thanks Max, I guess I'll stick with what I have Cheers, Phil. - Original Message - From: Max Nilson [EMAIL PROTECTED] To: 'NZ Borland Developers Group - Delphi List' [EMAIL PROTECTED] Sent: Thursday, September 09, 2004 10:02 AM Subject: RE: [DUG] Passing Objects to a DLL Phil

Re: [DUG] Passing Objects to a DLL

2004-09-08 Thread Phil Middlemiss
Good idea, although I'm not so worried about speed. Comparing class type names may be slower, but it is certainly easier to code than to build up a VMT translation table! Still, I'll try and remember that idea in case of later development needs. Cheers, Phil. - Original Message - From:

Re: [DUG] Passing Objects to a DLL

2004-09-08 Thread Phil Middlemiss
09, 2004 3:11 PM Subject: RE: [DUG] Passing Objects to a DLL Phil Middlemiss said: Good idea, although I'm not so worried about speed. Comparing class type names may be slower, but it is certainly easier to code than to build up a VMT translation table! Still, I'll try and remember

Re: [DUG] How can I check if an object exists?

2004-09-09 Thread Phil Middlemiss
Or initialise each new cell to nil when the array is created/extended etc. Phil. - Original Message - From: Stacey Verner [EMAIL PROTECTED] To: NZ Borland Developers Group - Delphi List [EMAIL PROTECTED] Sent: Friday, September 10, 2004 7:41 AM Subject: RE: [DUG] How can I check if an

Re: [DUG] StringGrid

2004-09-15 Thread Phil Middlemiss
Use the InvalidateCell method after setting the object for that cell. Phil. - Original Message - From: Kit Jackson [EMAIL PROTECTED] To: NZ Borland Developers Group - Delphi List [EMAIL PROTECTED] Sent: Wednesday, September 15, 2004 7:13 PM Subject: Re: [DUG] StringGrid On Wed, 15 Sep

Re: [DUG] StringGrid

2004-09-15 Thread Phil Middlemiss
PROTECTED] Sent: Thursday, September 16, 2004 8:24 AM Subject: Re: [DUG] StringGrid I would like to but it is protected - I am just using a string grid... Regards Paul McKenzie SMSS Ltd. Wellington New Zealand - Original Message - From: Phil Middlemiss [EMAIL PROTECTED] To: NZ

Re: [DUG] Thread processes

2004-10-14 Thread Phil Middlemiss
Thanks to all who replied. I will have a play - I don't think I can get away with not calling ProcessMessages tho, since the COM port component I use uses Timer messages to poll the COM port. I'll let you know anyway. Cheers, Phil. - Original Message - From: Stephen Bertram

Re: [DUG] Thread processes

2004-10-14 Thread Phil Middlemiss
cause the buffer to be 1/2 full Neven MacEwan (B.E. EE) Ph. 09 621 0001 Mob. 0274 749062 Phil Middlemiss wrote: I have a thread that sits in the background waiting for input from a COM port. the execute method simple has these two lines: while not Terminated do

Re: [DUG] 'exclusive or'

2004-11-10 Thread Phil Middlemiss
here is a simple function I use: function CalcCheckSum(const S: String): Word;var i: Integer;begin result := 0; for i := 1 to Length(S) do result := result xor Word(S[i]);end probably not the fastest, but it's adequate. Cheers, Phil. - Original Message - From: Jeremy

Re: [DUG] Mainmenu

2004-11-23 Thread Phil Middlemiss
And don't forget the shortcut/quick keys! - Original Message - From: Brian Wrigley [EMAIL PROTECTED] To: Alistair George [EMAIL PROTECTED]; NZ Borland Developers Group- Delphi List [EMAIL PROTECTED] Sent: Tuesday, November 23, 2004 11:31 PM Subject: Re: [DUG] Mainmenu - Original

Re: [DUG] Multiple com ports

2004-11-24 Thread Phil Middlemiss
Why do you have a thread descendant containing the TApdComport? The TApdComport is fully threaded itself. Doesn't that mean you would have to poll the the thread descendant to see if new data is there? Because if you simple raise an event, and process that new data in the event you have to either

Re: [DUG] Multiple com ports

2004-11-24 Thread Phil Middlemiss
Fair enough - I was just interested, thats all :-) Phil. - Original Message - From: Paul Lowman [EMAIL PROTECTED] To: NZ Borland Developers Group - Delphi List [EMAIL PROTECTED] Sent: Thursday, November 25, 2004 11:36 AM Subject: Re: [DUG] Multiple com ports Phil You may have a point

Re: [DUG] Delphi Architect trial

2004-11-25 Thread Phil Middlemiss
has come from. Borland is also a member of the Eclipse Foundation (or commitee or whatever they call it). -Original Message-From: Phil Middlemiss [mailto:[EMAIL PROTECTED]Sent: 26 November 2004 9:22 AMTo: NZ Borland Developers Group - Delphi ListSubject: Re

[DUG] Accessing web MySQL DB from local Delhi app

2004-12-15 Thread Phil Middlemiss
Is it possible to directly access a MySQL database on a web server, from a local Delphi app? If so, what components should I use? By directly, I mean without having to go through a php script or similar. The MySQL db is on an Apache server. Cheers, Phil.

[DUG] remote MySQL via dbExpress

2004-12-16 Thread Phil Middlemiss
Hi all, due to mail server difficulties I have not received any responses (or even my earlier post) about connecting to MySQL (if there were any). But I've had a go at configuring a connection to MySQL. When ever I try to establish the connection I get an eDatabaseError "Unable to Load

[DUG] concurrent Interbase Transactions

2005-01-13 Thread Phil Middlemiss
Hi everyone - hope you all had a good break. Looks like summer has finally arrived (now that everyone's back at work)! Anyway... I'm using Firebird (and transactions) for the first time. I'm connecting to a remote database via the Firebird Server with no problems, but I have a question

Re: [DUG] concurrent Interbase Transactions

2005-01-13 Thread Phil Middlemiss
] On Behalf Of Phil Middlemiss Sent: Friday, 14 January 2005 8:42 a.m. To: NZ Borland Developers Group - Delphi List Subject: [DUG] concurrent Interbase Transactions Hi everyone - hope you all had a good break. Looks like summer has finally arrived (now that everyone's back at work

Re: [DUG] concurrent Interbase Transactions

2005-01-13 Thread Phil Middlemiss
TIBQuery.ForcedRefresh to True and the RefreshQuery would return the PK back to the client via an alternate unique key. Craig. Phil Middlemiss wrote: Thanks to all who replied. In the end I did the inevitable (Johns suggestion) and now fetch a new ID first and include it in the INSERT

[DUG] Interbase/Firebird Filters

2005-01-19 Thread Phil Middlemiss
Title: Message I'm using a TIBQuery to fetch some rows from a table, and then filter them. But I can't seem to get the filter to work. I carry out the query, do a fetchall, set the filter, and set filtered to true. It seems to have no effect though - I still have just as many records in

Re: [DUG] Interbase/Firebird Filters

2005-01-19 Thread Phil Middlemiss
you wish. Some of the features of TClientDataSet, such as a delta and cloned cursors, are quite underrated. HTH, Craig. Phil Middlemiss wrote: I'm using a TIBQuery to fetch some rows from a table, and then filter them. But I can't seem to get the filter to work. I carry out the query

Re: [DUG] Interbase/Firebird Filters

2005-01-20 Thread Phil Middlemiss
So for the lack of clarity, I basically want to be able to run an SQL script that contains maybe a couple of INSERTs, and a few UPDATEs all at once, rather than formulating each one and executing it individually. The VCL components all seem to be limited to executing one statement at a time

Re: [DUG] Interbase/Firebird Filters

2005-01-20 Thread Phil Middlemiss
Thanks Rob, I will check them out. Phil. p.s. The first sentence of the previous post was a typo - it was meant to read "Sorry for the lack of clarity" - talk about ironic! - Original Message - From: Robert martin To: NZ Borland Developers Group - Delphi List

Re: [DUG] Interbase/Firebird Filters

2005-01-20 Thread Phil Middlemiss
Yeah, something like that. Phil. - Original Message - From: Craig Goodall [EMAIL PROTECTED] To: NZ Borland Developers Group - Delphi List delphi@ns3.123.co.nz Sent: Friday, January 21, 2005 9:43 AM Subject: Re: [DUG] Interbase/Firebird Filters Phil Middlemiss wrote: So for the lack

Re: [DUG] Interbase/Firebird Filters

2005-01-23 Thread Phil Middlemiss
, January 21, 2005 4:43 PM Subject: RE: [DUG] Interbase/Firebird Filters Sorry if this sounds stupid, but why don't you just use the TIBScript component? Trevor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Phil Middlemiss Sent: Friday, 21

[DUG] Web services

2005-03-22 Thread Phil Middlemiss
Two questions really: 1) I'm using Delphi 6 Professional - does anyone know of any components that allow a wsdl file to be fetched at runtime and then accessed assuming that it supports some agreed upon web service calls? 2) I have created a web service using eclipse and systinet's plugin, I

Re: [DUG] DCU files required when PAS files are present

2005-03-30 Thread Phil Middlemiss
You may need to delete any dependent dcu's, rebuild any dependent bpls (only if first step doesn't work), and do a build of the package instead of a compile (although if you delete the dcus then this is not necessary, but still worth a try). I've had something similar before where it seemed

[DUG] Firebird/Interbase client required files

2005-04-05 Thread Phil Middlemiss
Hi all, I have a simple program that connects to a remote firebird database using the Delphi6 Interbase controls. What do I need to install on a client's machine in order to get it working? I have tried installing both stripped down and full installs of both the Firebird setup, and the

Re: [DUG] Firebird/Interbase client required files

2005-04-05 Thread Phil Middlemiss
not got it. Either put Mids in uses clause (havent tried it myself) or supply them with midas.dll to go in their system32 Date sent: Wed, 06 Apr 2005 10:33:29 +1200 From: Phil Middlemiss [EMAIL PROTECTED] Organization: Vision Software To: NZ Borland Developers

[DUG] Getting number of records in an Interbase Table

2005-04-07 Thread Phil Middlemiss
I'm using an Interbase IBQuery that selects all records in a table (lots of records) and I want to know how many records there are before I start navigating so I can jump to a specific record. If I ask IBQuery.RecordCount I always get 1 returned, but if I go IBQuery.Last and ask for

Re: [DUG] Getting number of records in an Interbase Table

2005-04-07 Thread Phil Middlemiss
Interbase Support a 'TOP N' Query? Neven Phil Middlemiss wrote: I'm using an Interbase IBQuery that selects all records in a table (lots of records) and I want to know how many records there are before I start navigating so I can jump to a specific record. If I ask IBQuery.RecordCount I always get 1

Re: [DUG] Getting number of records in an Interbase Table

2005-04-07 Thread Phil Middlemiss
record, This cannot be done, you can only scroll to the Nth record, keep this in mind Does Interbase Support a 'TOP N' Query? Neven Phil Middlemiss wrote: I'm using an Interbase IBQuery that selects all records in a table (lots of records) and I want to know how many records there are before I start

Re: [DUG] Getting number of records in an Interbase Table

2005-04-07 Thread Phil Middlemiss
a 'TOP N' Query? Neven Phil Middlemiss wrote: I'm using an Interbase IBQuery that selects all records in a table (lots of records) and I want to know how many records there are before I start navigating so I can jump to a specific record. If I ask IBQuery.RecordCount I always get 1 returned, but if I

Re: [DUG] Getting number of records in an Interbase Table

2005-04-07 Thread Phil Middlemiss
TIBQuery. You'd have to see how the performance is for the initial running of the query, but after that, I think all your problems disappear. Everything is then in memory, RecordCount is immediately correct, you have the option to use ClonedCursors etc. Just a thought, Craig. Phil Middlemiss wrote

Re: [DUG] Getting number of records in an Interbase Table

2005-04-07 Thread Phil Middlemiss
if CandidateKey is NULL // fetch last 30 records Select col from table1 order by candidatekey desc else // fetch 30 record from this point Select col from table1 where candidatekey @candidatekey order by candidatekey desc HTH Neven Phil Middlemiss wrote: Further to my last barrage of questions: I

Re: [DUG] Getting number of records in an Interbase Table

2005-04-07 Thread Phil Middlemiss
30 record from this point Select col from table1 where candidatekey @candidatekey order by candidatekey desc HTH Neven Phil Middlemiss wrote: Further to my last barrage of questions: I can see how this procedure would fetch a certain number of records, but how do I get it to start at record

Re: [DUG] Getting number of records in an Interbase Table

2005-04-10 Thread Phil Middlemiss
tekey @candidatekey if @direction = fromend if CandidateKey is NULL // fetch last 30 records Select col from table1 order by candidatekey desc else // fetch 30 record from this point Select col from table1 where candidatekey @candidatekey order by candidatekey desc HTH Neven P

Re: [DUG] Getting number of records in an Interbase Table

2005-04-11 Thread Phil Middlemiss
Hmmm, I tried that query using EMS Interbase/Firebird Manager and it didn't like the ROWS keyword (didn't even highlight it as a keyword). Richard Vowles wrote: Have we missed out why you can't just use the ROWS keyword in the SELECT statement? This is InterBase right? Firebird 1.5 is

Re: [DUG] Getting number of records in an Interbase Table

2005-04-11 Thread Phil Middlemiss
ail: [EMAIL PROTECTED] im: msn: [EMAIL PROTECTED], skype: rvowles From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Phil Middlemiss Sent: Tuesday, 12 April 2005 8:39 a.m. To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] Getting number of records in an Interb

[DUG] Bitmap in a stream

2005-04-14 Thread Phil Middlemiss
I have a TMemory stream that is loaded up with what should be a bitmap received from across the web. If I export the stream to file, sure enough I get a bitmap that I can view in an editor. If I try to go MyBMP.LoadFromStream(SourceStream); It fails and MyBMP remains empty. Any ideas? Phil.

[DUG] casting a number as a char in IB SQL

2005-04-18 Thread Phil Middlemiss
I'm running into difficulty trying to convert the number 34 into a CHAR (length 1) in an INSERT statement using Firebird/Interbase. This is the query as I'm trying it: INSERT INTO MYTABLE VALUES(1, Cast(34 as CHAR)) which it doesn't like - it seems to be trying to convert 34 into the string

Re: [DUG] casting a number as a char in IB SQL

2005-04-18 Thread Phil Middlemiss
] [mailto:[EMAIL PROTECTED]] On Behalf Of Phil Middlemiss Sent: Tuesday, 19 April 2005 11:28 a.m. To: NZ Borland Developers Group - Delphi List Subject: [DUG] casting a number as a char in IB SQL I'm running into difficulty trying to convert the number 34 into a CHAR (length 1) in an INSERT

Re: [DUG] casting a number as a char in IB SQL

2005-04-18 Thread Phil Middlemiss
question on the Firebird support group if you are not a member :) I don't know If I have asked this, but do you have a sister called Janet? Rob Martin Software Engineer phone +64 03 377 0495 fax +64 03 377 0496 web www.chreos.com Wild Software Ltd Phil Middlemiss wrote: That was the first thing I

Re: [DUG] Testing Tools

2005-04-26 Thread Phil Middlemiss
I'm not using anything, but perhaps this list would be useful? http://www.testingfaqs.org/t-gui.html Phil. Jeremy Coulter wrote: Hi all. Is anyone using anything, other than Rational Robot, to do automated testing of software? Thanks, Jeremy

[DUG] Unavailable Database

2005-04-28 Thread Phil Middlemiss
Out test machine is complaining about unavailable database when I try to connect to a local firebird file. I had a read of the firebird Quickstart Guide which mentioned I needed two files, gds32.dll and fb32.dll for a client install - I can only find the first one on my machine. Am I missing

Re: [DUG] Freeing memory

2005-04-28 Thread Phil Middlemiss
which holds the pointer to the string. I am assuming that widestring is like ansistring in which case it will be managed automatically by reference counting. Date sent: Thu, 28 Apr 2005 15:13:53 +1200 From: Phil Middlemiss [EMAIL PROTECTED] Organization

Re: [DUG] Unavailable Database

2005-04-28 Thread Phil Middlemiss
From: Phil Middlemiss [EMAIL PROTECTED] Organization: MTS Ltd To: NZ Borland Developers Group - Delphi List delphi@ns3.123.co.nz Subject:[DUG] Unavailable Database Send reply to: NZ Borland Developers Group - Delphi List delphi

Re: [DUG] Unavailable Database

2005-04-28 Thread Phil Middlemiss
] [mailto:[EMAIL PROTECTED]] On Behalf Of Phil Middlemiss Sent: Friday, 29 April 2005 10:17 a.m. To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] Unavailable Database Damn, I was afraid of that. Is there a way to embed it inside another installer? What are the issues with user rights

  1   2   3   4   >