Re: [DUG]: Contracting issues - Comments please

2001-10-14 Thread Bob Osborn
If you went to Accessdatabases andVB or VC++ you'd probably use ADO - and in my opinion Delphi handles ADO more elegantly than VB does (don't know about VC) so youhave another alternative BobOsborn

[DUG]: Application.createform Vs. frm:=TForm.create

2001-10-14 Thread vss
Hi all. What is the difference of doing Application.createform as apposed to frm:=TForm.create ? I cant see any real advanatage in doing one over the other, but I could be wrong. Can anyone shed some light on this? Thanks, Jeremy Coulter

Re: [DUG]: Contracting issues - Comments please

2001-10-14 Thread Corey Murtagh
- Original Message - From: Bob Osborn To: Multiple recipients of list delphi Sent: Monday, October 15, 2001 9:56 AM Subject: Re: [DUG]: Contracting issues - Comments please If you went to Accessdatabases andVB or VC++ you'd probably use ADO - and in my

Re: [DUG]: Contracting issues - Comments please

2001-10-14 Thread Neven MacEwan
Patrick This raises a lot of issues, One which is signiificant (are you listening Nick) is how little Borland do for us as developers, Because we are their 'clients' it always seems to me that they are trying to extact revenues from us and not seeing us a resource thru which their revenues can

Re: [DUG]: Contracting issues - Comments please

2001-10-14 Thread Steve Galyer
Hi Patrick In regard to obtain the services of a contracting firm in another part of the country. I support systems remotely for a number of clients in various parts of the country. I am not an administrator and I generally recommend that clients contract another local party to perform the

RE: [DUG]: Contracting issues - Comments please

2001-10-14 Thread Paul Grimstrup
The term "virtual corporation" springs to mind. Has this been tried before? Is itviable for the NZ Delphi community? Cheers Paul Grimstrup [EMAIL PROTECTED]

[DUG]: modification dates.

2001-10-14 Thread Matthew Comb
Hi people. I have found something interesting with the modification dates for files on different operating systems. On windows 98 if you change time zone or daylight savings the modification date doesn't change, on windows 2000 if you change those settings, the modification date DOES change at

[DUG]: Renaming Folders in Windows

2001-10-14 Thread David O'Brien
Is there a simple function to do this? I can't find anything in either the D5 or Win32 help. Dave. --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz

Re: [DUG]: modification dates.

2001-10-14 Thread Rohit Gupta
Its worse than that. IT changes on 2000. However on Nt4, it changes on some drives for some users 9Seemingly at random). This was supposed to be fixed in Sp5 or thereaboust but it has probably come back. When you think about it, there is no solution. Assuming that 2000 now stores the GMT

RE: [DUG]: Renaming Folders in Windows

2001-10-14 Thread Stephen Bertram
Doesn't RenameFile() cover this ? Stephen --- 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

RE: [DUG]: Renaming Folders in Windows

2001-10-14 Thread David O'Brien
Don't know, never thought of that, I'll give it a go. Ta, Dave. -Original Message- From: Stephen Bertram [mailto:[EMAIL PROTECTED]] Sent: Monday, October 15, 2001 3:09 PM To: Multiple recipients of list delphi Subject: RE: [DUG]: Renaming Folders in Windows Doesn't RenameFile() cover

RE: [DUG]: Renaming Folders in Windows

2001-10-14 Thread David O'Brien
Doesn't appear to work. Any other suggestions? Dave. -Original Message- From: David O'Brien [mailto:[EMAIL PROTECTED]] Sent: Monday, October 15, 2001 3:14 PM To: Multiple recipients of list delphi Subject: RE: [DUG]: Renaming Folders in Windows Don't know, never thought of that, I'll

RE: [DUG]: Renaming Folders in Windows

2001-10-14 Thread Manning, John
Try the API function MoveFile! HTH, John -Original Message- From: David O'Brien [mailto:[EMAIL PROTECTED]] Sent: Monday, 15 October 2001 12:27 pm To: Multiple recipients of list delphi Subject: RE: [DUG]: Renaming Folders in Windows Doesn't appear to work. Any other suggestions?

Re: [DUG]: modification dates.

2001-10-14 Thread Matthew Comb
Rohit, thanks for the response, In sysutils, the fileage method does this : FileTimeToLocalFileTime(FindData.ftLastWriteTime, LocalFileTime); if FileTimeToDosDateTime(LocalFileTime, LongRec(Result).Hi, LongRec(Result).Lo) then Exit; If you bypass the filetime to

RE: [DUG]: Renaming Folders in Windows

2001-10-14 Thread Patrick Dunford
ShFileOperation -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David O'Brien Sent: Monday, 15 October 2001 14:58 To: Multiple recipients of list delphi Subject: [DUG]: Renaming Folders in Windows Is there a simple function to do this? I can't

RE: [DUG]: Application.createform Vs. frm:=TForm.create

2001-10-14 Thread Patrick Dunford
Application.CreateForm is a method of TApplication that calls the constructor (TForm.Create) of the form specified. The Application becomes the form's owner. Note: By default the form created by the first call to CreateForm in a project becomes the application’s main form. If you did not call

Re: [DUG]: Renaming Folders in Windows

2001-10-14 Thread Nello Sestini
error 32 is a sharing violation. the file is being accessed by another process. -ns - Original Message - From: David O'Brien [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Monday, October 15, 2001 9:53 AM Subject: RE: [DUG]: Renaming Folders in

RE: [DUG]: Renaming Folders in Windows

2001-10-14 Thread David O'Brien
SHFileoperation returns 31. Is there any example code out there? var SHFileStruct: _SHFileOpStructA ; ... SHFileStruct.Wnd := 0 ; SHFileStruct.wFunc := FO_Rename ; SHFileStruct.pFrom := PChar(Folder) ; // = 'c:\dmi\help' SHFileStruct.pTo := PChar(NewFolder) ; // = 'c:\dmi\help1'

RE: [DUG]: Renaming Folders in Windows

2001-10-14 Thread Sergei Stenkov
Hi, RenameFile('c:\\1', 'c:\\2'); Works fine for me. Sergei Doesn't appear to work. Any other suggestions? Dave. -Original Message- From: David O'Brien [mailto:[EMAIL PROTECTED]] Sent: Monday, October 15, 2001 3:14 PM To: Multiple recipients of list delphi Subject: RE:

RE: [DUG]: Renaming Folders in Windows

2001-10-14 Thread David O'Brien
Sorry, I have purposely chosen folders nowhere near my app. Dave. -Original Message- From: David Brennan [mailto:[EMAIL PROTECTED]] Sent: Monday, October 15, 2001 4:27 PM To: Multiple recipients of list delphi Subject: Re: [DUG]: Renaming Folders in Windows Dave, Put a breakpoint in

RE: [DUG]: Renaming Folders in Windows

2001-10-14 Thread David O'Brien
Why the double backslash? Dave. -Original Message- From: Sergei Stenkov [mailto:[EMAIL PROTECTED]] Sent: Monday, October 15, 2001 4:08 PM To: Multiple recipients of list delphi Subject: RE: [DUG]: Renaming Folders in Windows Hi, RenameFile('c:\\1', 'c:\\2'); Works fine for me.

RE: [DUG]: Renaming Folders in Windows

2001-10-14 Thread Chris Reynolds
Alternatively the folder is being held open in the right-ghand-side of Explorer -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David Brennan Sent: Monday, October 15, 2001 4:27 PM To: Multiple recipients of list delphi Subject: Re: [DUG]: Renaming

[DUG]: dbGrid

2001-10-14 Thread John Christenhusz
G'day folks, I've asked this question before and did get a satisfactory reply at that time, but after all it doesn't seem to work the way I want it to. What I want is to change the presentation of a dbGrig's field only when the field ('Type') = 2. Pseudo code: When Type = 2 then begin when

RE: [DUG]: Renaming Folders in Windows

2001-10-14 Thread Sergei Stenkov
Why the double backslash? Sorry, no comments on silly errors, ouch! But Delphi was amazingly forgiving in this instance and it works in both cases wether with single or double slashn (just checked). -Original Message- From: Sergei Stenkov [mailto:[EMAIL PROTECTED]] Sent: Monday,

RE: [DUG]: Application.createform Vs. frm:=TForm.create

2001-10-14 Thread vss
Thanks for athe. Its one of those things I never had time to examine too much. Jeremy Coulter -Original Message- From: Patrick Dunford [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Date: Mon, 15 Oct 2001 15:53:00 +1300 Subject: RE: [DUG]:

RE: [DUG]: Renaming Folders in Windows

2001-10-14 Thread Manning, John
Dave, The following works on my PC: MoveFile('c:\a', 'c:\b') John -Original Message- From: David O'Brien [mailto:[EMAIL PROTECTED]] Sent: Monday, 15 October 2001 12:54 pm To: Multiple recipients of list delphi Subject: RE: [DUG]: Renaming Folders in Windows MoveFile returns false,

Re: [DUG]: dbGrid

2001-10-14 Thread Robert Martin
While not solution to your actual problem Have you considered using a calculated field to display the information? You could put your tests in their and display that value in the grid. For example we often display a 'P' column that indicates an item was printed. The field is Boolean so the

RE: [DUG]: Renaming Folders in Windows

2001-10-14 Thread David O'Brien
Definately not being used by anything else. ... Cool Earthquake (Manawatu) ... RenameFile returns 32. Dave. -Original Message- From: Chris Reynolds [mailto:[EMAIL PROTECTED]] Sent: Monday, October 15, 2001 4:38 PM To: Multiple recipients of list delphi Subject: RE: [DUG]: Renaming

RE: [DUG]: Renaming Folders in Windows

2001-10-14 Thread David O'Brien
Just tried it with an empty project, and it works here too. Bugger. Now to find out how my app is holding open a folder its got nothing to do with :( Dave. -Original Message- From: Manning, John [mailto:[EMAIL PROTECTED]] Sent: Monday, October 15, 2001 5:01 PM To: Multiple recipients of

RE: [DUG]: dbGrid

2001-10-14 Thread David O'Brien
OK, got it, sorry guys, thanks for the help. Missing Findclose after retrieving a list of files in the folder. (How do you do an embarrassed emoticon?) Dave. -Original Message- From: Robert Martin [mailto:[EMAIL PROTECTED]] Sent: Monday, October 15, 2001 5:05 PM To: Multiple

RE: [DUG]: Renaming Folders in Windows

2001-10-14 Thread Patrick Dunford
Double backslash is needed in C style strings since the backslash acts as an escape (for example \n is the carriage return character). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David O'Brien Sent: Monday, 15 October 2001 16:46 To: Multiple