[DUG]: Clearing records

2003-10-28 Thread Alistair George
Hi all. hope everyone is well! Info please. I want to clear an array, but still have it available for later use. EG: type PVtreeSearchList = ^TVtreeSearchList; TVtreeSearchList = record Filename, ZipName, PathName, Ftype, Fsize, DTime: string; Index: Cardinal; end; var

RE: [DUG]: Clearing records

2003-10-28 Thread Myles Penlington
Correct on all counts. Beware of assignment of dynamic arrays. I forget the exact rules - check the help - mind you i have never found it to be an issue yet... Myles. -Original Message- From: Alistair George [mailto:[EMAIL PROTECTED] Sent: Tuesday, 28 October 2003 21:07 To: Multiple

[DUG]: Losing edits

2003-10-28 Thread Chris Reynolds
I'm doing some active delphi development on my laptop for the first time in several months and smell an environment problem. In one particular place in my project, my field assignments aren't sticking qryCrop['LatestTestDate'] := latesttestdate; qryCrop['LatestTestValue'] :=

RE: [DUG]: Clearing records

2003-10-28 Thread Stephen Barker
VtreeSearchList:=nil; Is the above valid for reuse. And on form close, is it tidied up without further freeing? yes. alternatively: setlength(VtreeSearchList, 0) or Finalize(... you can use setlength to allocate it again for reuse. Steve

RE: [DUG]: Losing edits

2003-10-28 Thread Myles Penlington
Be aware that in effect there is no real record buffer with ADO components compared to other dataset implementations. As all the data is transferred via Variants from the Ado Field.Value properties. I think the issue may be with your ado component settings. I would suspect that the ado dataset

[DUG]: Running an app from NT Service

2003-10-28 Thread Jeremy Coulter
Title: Message Hi All. Do I have to have interact with desktop selected to make an NT Service run another app? I am using WinExec to run the fiel. Should I do it anotehr way? or am I stuck with desktop interaction being needed? Cheers, Jeremy Coulter

Re: [DUG]: Running an app from NT Service

2003-10-28 Thread Ben Taylor
Hi, Do I have to have interact with desktop selected to make an NT Service run another app? nope. just tested with winxp. I am using WinExec to run the fiel. Should I do it anotehr way? or am I stuck with desktop interaction being needed? Not sure about winexec, I use CreateProcess(). Cya,

Re: [DUG]: Delphi Testing Tools

2003-10-28 Thread Ben Taylor
What other such tools are out there, and / or has someone else taken over the product? Looking for Memory leak testing, stress testing etc. The best memory leak checker I've used is MemCheck. http://v.mahon.free.fr/pro/freeware/memcheck Simple, quick, runs as part of your application (ie

[DUG]: Tag

2003-10-28 Thread gajo
What's the use of a Tag property when I can't use it properly? I've had a similar problem like this many times earlier, and I have always bypassed it somehow, but this time I just don't want to! Here's my problem: I've created an array of TImages called grp[i] (i=1..max). During Initialization

RE: [DUG]: Tag

2003-10-28 Thread Stephen Barker
end else if (ClassType = TPeasants) then begin newX := X + Sender.Left; // ERROR newY := Y + Sender.Top; // ERROR I think you want something like: end else if (ClassType = TPeasants) then begin newX := X + TPeasants(Sender).Left; newY := Y +

RE: [DUG]: Running an app from NT Service

2003-10-28 Thread Jeremy Coulter
Yeah after sending the mail lastnight I wondered about createprocess, but was too tired by then, Will give it a crack. jeremy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Taylor Sent: Tuesday, 28 October 2003 23:53 To: Multiple recipients of list

Re: [DUG]: Running an app from NT Service

2003-10-28 Thread Moises Lopez
nope, i'm running a service on w2k and i use WinExec to launch another program no problems so far. At 11:34 PM 10/28/2003 +1300, you wrote: Hi All. Do I have to have interact with desktop selected to make an NT Service run another app? I am using WinExec to run the fiel. Should I do it anotehr

RE: [DUG]: Running an app from NT Service

2003-10-28 Thread Jeremy Coulter
Oh I can RUN an app using WinEXEC, BUT it has to interact with the desktop...oh...but hang on...I am lloking for the handle of a window...i.e. if an app. Stops running it opens anotherDUH...I guess I DO need to interact with the desktopDOH...well it WAS late ;-) Jeremy -Original

RE: [DUG]: Tag

2003-10-28 Thread Conor.Boyd
Also: You might want to have a look at TControl.ScreenToClient and TControl.ClientToScreen methods for translating positions (i.e. your mouse clicks) between different controls - that way you will be able to get the same relative coordinates regardless of which control your user is clicking

[DUG]: Associate file type with D7

2003-10-28 Thread Mark Howard
Hi I have just installed D7 alongside D5 in my XP environment. I like to open the IDE with a particular project loaded by double clicking the .dpr file, but when I do that it loads D5. I have gone into Folder optionsFile types and selected DPR and it tells me that it is set to open with the

RE: [DUG]: Associate file type with D7

2003-10-28 Thread Stacey Verner
Did you check the 'Always use the selected program to open this kind of file' option? Stacey -Original Message- From: Mark Howard [mailto:[EMAIL PROTECTED] Sent: Wednesday, 29 October 2003 11:20 To: Multiple recipients of list delphi Subject: [DUG]: Associate file type with D7

RE: [DUG]: Associate file type with D7

2003-10-28 Thread Mark Howard
That option is disabled Mark On 29 Oct 2003 at 11:25, Stacey Verner wrote: Did you check the 'Always use the selected program to open this kind of file' option? Stacey -Original Message- From: Mark Howard [mailto:[EMAIL PROTECTED] Sent: Wednesday, 29 October 2003 11:20

RE: [DUG]: Associate file type with D7

2003-10-28 Thread Myles Penlington
In case of last resort, Search your registry for delphi32 and change all incorrect entries - a bit over a dozen will need changing. M. -Original Message- From: Mark Howard [mailto:[EMAIL PROTECTED] Sent: Wednesday, 29 October 2003 11:20 To: Multiple recipients of list delphi Subject:

RE: RE: [DUG]: Associate file type with D7

2003-10-28 Thread Stacey Verner
I am on Windows XP pro and can do the following: Right Click on the file (.dpr) and select Open With (there may be a sub menu - click Choose Program...) Browse for the exe (I don't have a different version of Delphi but I just picked a random exe). Check the 'Always use the selected program to

RE: [DUG]: Associate file type with D7

2003-10-28 Thread Mark Howard
OK. Got it sussed. I had to click on the Restore defaults and then into the Advanced option and reset the path of the Open with to D7. Thanks to all who were racking their brains trying to figure out what I had done. Mark On 29 Oct 2003 at 11:25, Stacey Verner wrote: Did you check the

Re: [DUG]: Losing edits

2003-10-28 Thread Chris Reynolds
On Tue, 28 Oct 2003 21:26:45 +1300, Myles Penlington [EMAIL PROTECTED] wrote: Be aware that in effect there is no real record buffer with ADO components compared to other dataset implementations. As all the data is transferred via Variants from the Ado Field.Value properties. I think the issue