[DUG] Produce PDF from text file

2011-08-03 Thread John Bird
Using D2007 and Rave reports - should be easy to produce a PDF version of a text file report. The reports need to be printed using a non-proportional font, which is why I would like to use PDF rather than Notepad (which is often set to display in proportional fonts and users do not know how to

Re: [DUG] Email/SMTP code

2011-08-03 Thread John Bird
Have code working now nicely, email me if anyone wants what I am using. Is there a way to find the default settings from Outlook or Registry for: 1 - smtp setting 2 - users email address (for the From: address) At present I have to ask the users for this, should ideally be set from default

Re: [DUG] Email/SMTP code

2011-07-16 Thread John Bird
; end; end; except EmailFailed := True ; end ; end ; From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of John Bird Sent: Tuesday, 12 July 2011 1:47 p.m. To: NZ Borland Developers Group - Delphi List Subject: [DUG] Email/SMTP code

Re: [DUG] Email/SMTP code

2011-07-14 Thread John Bird
Trying to debug this SMTP program, having tweaked the code a little – I am getting “Connection timed out” However I cannot debug, as on Windows 7 this program requires admin access. I restarted the IDE (BDS.EXE) running as administrator but still get the error message “Cannot create process”

Re: [DUG] Email/SMTP code

2011-07-14 Thread John Bird
begin Result := msgTo+': '+e.Message ; EmailFailed := True ; end; end ; end ; From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of John Bird Sent: Thursday, 14 July 2011 6:06 p.m. To: NZ Borland Developers Group - Delphi List Subject: Re

Re: [DUG] Email/SMTP code

2011-07-14 Thread John Bird
Here is details of the “unable to create process” when I try to debug the SMTP test program on Windows 7, with the IDE running as administrator in case anyone has a bright idea whats going on [20885408]{dbkdebugide100.bpl} Debug.TDebugger.DBKError (Line 11445, Debug.pas + 3) + $23

Re: [DUG] Email/SMTP code

2011-07-14 Thread John Bird
FYI - Removed a not needed SMTP component from the test project and restarted the PC – I think it was the latter, that somehow Windows 7 remembered something about the project/exe and still put UAC on it. Then debugger worked without Run as Administrator. John Bird JBCL Contact: johnkb

[DUG] Email/SMTP code

2011-07-11 Thread John Bird
Anyone got a recommendation for the best (free) code/samples to drive Indy10 for sending an email with attachment -Indy10.2.3 -Send attachment -SMTP server and email addresses will be known I have tried a couple (eg AtoZed SendMail example) but it seems to time out connecting to the SMTP

Re: [DUG] Email/SMTP code

2011-07-11 Thread John Bird
; IdMessage.Free ; end; end; except EmailFailed := True ; end ; end ; From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of John Bird Sent: Tuesday, 12 July 2011 1:47 p.m. To: NZ Borland Developers Group - Delphi List Subject: [DUG] Email/SMTP code

Re: [DUG] Variable in String

2011-06-28 Thread John Bird
Jolyon I imagine you have an opinion on doing this your way rather than like this example below – I would be interested in hearing your reasoning. A similar example – this is the sort of code I have been using setlength(temp, 100); //has to be big enough first setlength(temp,

Re: [DUG] Web development

2011-06-06 Thread John Bird
http://en.wikipedia.org/wiki/Comparison_of_web_application_frameworks good overview - covers 1.1 Perl 1.2 PHP 1.3 Java 1.4 Python 1.5 Ruby 1.6 CFML (ColdFusion) 1.7 ASP.NET 1.8 Other So I guess these are the major players. John -Original Message- From: Sean Cross Sent: Tuesday, June

Re: [DUG] FW: Web development

2011-06-06 Thread John Bird
That was the MS principle - EEE ie, Embrace, Extend (in a non-standard way), Extinguish (the alternatives). They tried and failed that in the Java world already with J++ http://en.wikipedia.org/wiki/Visual_J%2B%2B which includes the interesting quotes from internal MS emails: Retrieved

Re: [DUG] FW: Web development

2011-06-06 Thread John Bird
I am mystified why any government organisations would be stuck on IE6 given its the best door for any hacker wanting to intrude into a system. Its how Google was penetrated 18 months ago - hackers found workstations that had to use IE6 for historical reasons (reasons that were not all that

Re: [DUG] FW: Web development

2011-06-03 Thread John Bird
I am an outside observer of Web development as I don't personally do it either, but interested to find the best practice tools to pick up, as its such a promising area for the future. I guess like a lot of Delphi programmers, if we are going to pick up web development (and seems to be the

Re: [DUG] Validate data entry

2011-06-01 Thread John Bird
I have a related question - I have been wondering how to display data in a dataset that is not either simple integer, string or date-time. Examples are: dates stored as an 8 digit integer (MMDD) (want to display as dd-mmm- and I already have the code to format it how I want) IRD

Re: [DUG] NZ Developer Day - invitation

2011-05-26 Thread John Bird
I am planning to be there John From: Alister Christie Sent: Friday, May 27, 2011 3:26 PM To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] NZ Developer Day - invitation I'm registered and flights booked, is there any other out of town-ers attending? Alister Christie Computers

Re: [DUG] File/Dir Open at My Computer

2011-05-23 Thread John Bird
Group - Delphi List Subject: Re: [DUG] File/Dir Open at My Computer John, the TDriveCombobox should do the trick. On 20/05/2011 1:35 a.m., John Bird wrote: I want to bring up a dialog to select a drive (Will be usually a removable USB drive). Can I do this with any of the standard Delphi

Re: [DUG] File/Dir Open at My Computer

2011-05-23 Thread John Bird
and looks good too. On Mon, May 23, 2011 at 6:36 PM, John Bird johnkb...@paradise.net.nz wrote: Well it is what I was looking for but I probably won’t use it as it is incredibly ugly – as in it has Windows 3.1 look. Is this really the most modern version of selecting a drive I can use

[DUG] File/Dir Open at My Computer

2011-05-19 Thread John Bird
I want to bring up a dialog to select a drive (Will be usually a removable USB drive). Can I do this with any of the standard Delphi TOpenDialog or SelectDirectory etc? Ideally I want to bring up a dialog starting at My Computer...(D2007) [Aside - I know how to show My Computer by starting

Re: [DUG] June 6th

2011-05-16 Thread John Bird
Monday 6th is Queens birthday holiday in case anyone has not twigged. Is that likely to affect travel for anyone from out of town? Or availability of anyone who might be on holidays otherwise? I am from Chch so availability of cheap flights is important. John From: Cameron Hart Sent:

Re: [DUG] Delphi 2007 Vista

2011-05-15 Thread John Bird
I have found a couple of minor oddities like this with one program starting another under Windows 7 – I also have a menu program that starts others, one of them an update program. This update program does run but does not show over other windows – mainly because I get a UAC prompt about

[DUG] API to Windows explorer

2011-05-12 Thread John Bird
I am writing a program to copy one or more folder trees to a USB drive (an extra backup regime for some Canterbury firms who were not able to get at servers or finding their offsite backups were also inaccessible). I have a nice component HAHFindFile to build the list of folders and files in a

Re: [DUG] API to Windows explorer

2011-05-12 Thread John Bird
Good grief lighten up! From what I heard - using a WiFi connection from the street was not a plan for disaster recovery, it was good kiwi improvisation. The point I was making was that in Christchurch in 2011, as happened in Greymouth around 1986 with floods, I dealt with firms where the

Re: [DUG] Auckland mini-conference

2011-05-08 Thread John Bird
Well I think a good idea could be a short open session where long term developers share their tips on tools and procedures that maximise their productivity. I have 2 or 3 small tips I would add to such a discussion...and would love to hear from others their developed tools and procedures!

[DUG] Closing a modal form from code in it

2011-05-07 Thread John Bird
I have a modal form that gets called to do some processing (involving Indy), and when it has finished if all is OK I am trying to get the end code after the Indy stuff to show status (which it does) and close the form (which it doesn’t). The statement form2.close is being executed but is not

Re: [DUG] D2007 Upgrading Indy to V10.2.3

2011-04-18 Thread John Bird
versions than the '100' indicated in your error msg. They go in: C:\Documents and Settings\All Users\Documents\RAD Studio\5.0\Dcp (remove the old '100' ones) HTH, Steve -- From: John Bird [mailto:johnkb

Re: [DUG] D2007 Upgrading Indy to V10.2.3

2011-04-17 Thread John Bird
are D2007). John Bird ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: unsubscribe

[DUG] D2007 Upgrading Indy to V10.2.3

2011-04-16 Thread John Bird
I have been trying to upgrade D2007 to use Indy 10.2.3 rather than the default installed 10.1.5. It looks to be a minefield, as the web site instructions do not make it clear how to do D2007 in particular as it was a binary compatible clone of D2006. The Indy BPL files are all called

Re: [DUG] Mapped drives

2011-04-03 Thread John Bird
When you map the drive tick the optiion to “Restore mapping on logon”. That way if a user loses the mapping you can just tell them to log out and logon again to fix it. As long as the network connection is there when the PC starts that normally works fine. If it doesn’t can be because a

Re: [DUG] Move mouse to ListItem

2011-03-08 Thread John Bird
I found a link on the list here where you could download the Delphi 2009 help files as .CHM which I did and added to the tools menu. Fast loading and useful - worthy addition to the D2007 help. I also have the D7 help in the tools menu too. Maybe someone has the link, I will try to

Re: [DUG] Christchurch Members

2011-02-25 Thread John Bird
to be broken as the ethernet cord dragged it off the table so it might need to be replaced Nothing was left in the fridge or freezer either, and toaster was hanging by its cord We have redecorated the kitchen! John Bird ___ NZ Borland Developers

Re: [DUG] Object was open

2011-02-21 Thread John Bird
[DUG] Rhino MocksThis may not be the problem, but I have the impression its generally cleaner to make sure a dataset is closed before altering either the query or parameters or other linkages to data providers etc. You may wish to make sure there is an optional close action as in: if

Re: [DUG] Windows 7 Network Oddity

2011-02-16 Thread John Bird
by other companies such as seagate - not to uses shared drives. The error given is C006. On 12/02/2011 12:20 a.m., John Bird wrote: ?I have software used on networks that commonly uses its shared folder server as a mapped drive, eg M:\MyFolder with M: mapped to \\Server1\MySoftware

[DUG] Windows 7 Network Oddity

2011-02-11 Thread John Bird
?I have software used on networks that commonly uses its shared folder server as a mapped drive, eg M:\MyFolder with M: mapped to \\Server1\MySoftware\ If a program runs from there, started as M:\MyFolder\MyProgram.exe , there is a difference between XP and Windows 7: XP

[DUG] Debug Windows 7 UAC

2011-02-08 Thread John Bird
?Trying to debug a problem in a program that requires elevation - (it copies exe files from an update to a working folder). I cannot run hence debug it in the IDE, are there any ways to debug such a program? I want to step through it to see where the access violation is. Windows 7/D2007

Re: [DUG] Debug Windows 7 UAC

2011-02-08 Thread John Bird
[mailto:delphi-boun...@delphi.org.nz] On Behalf Of John Bird Sent: Wednesday, 9 February 2011 12:24 p.m. To: NZ Borland Developers Group - Delphi List Subject: [DUG] Debug Windows 7 UAC ?Trying to debug a problem in a program that requires elevation - (it copies exe files from an update to a working folder

Re: [DUG] Delphi Starter Edition

2011-01-31 Thread John Bird
For those on D7 or earlier, its worth pointing out that a professional version of D7 also would not contain pretty much any of the things left out of the Starter edition – so it is still a pretty good deal in my humble opinion. ie those wanting a cheap upgrade from D5/D6/D7 can get this

Re: [DUG] Variabels stored

2011-01-20 Thread John Bird
There is another way as well, you can declare simple global variables – depending where you declare it determines it’s scope - how visible it it is. In this example string2 can be seen by any unit that uses this one, just as Form11 (the particular instance of TForm11, and is also a global

Re: [DUG] Variables stored

2011-01-20 Thread John Bird
confused looking at the code or trying to compile it on a fresh install of Delphi ! Also note I changed the typo spelling of the subject because it was annoying me :) Cheers Rob On 21/01/2011 9:04 a.m., John Bird wrote: There is another way as well, you can declare simple global variables

Re: [DUG] How to replace a file currently in use (Windows)

2011-01-19 Thread John Bird
?That's the reason in my system the updater program is the only one run from the updates folder - as that guarantees it runs the latest version downloaded. I also include in it any once-off housekeeping that needs to be done from time to time - creating folders, quick system checks etc. John

Re: [DUG] How to replace a file currently in use (Windows)

2011-01-18 Thread John Bird
I do it slightly differently – I have a dedicated loader program which can update a number of files and programs in one go. It runs as the startup/splash screen for the main app menu. Updated programs are in an update folder, working programs are in a (local) folder It does: -Reads a list

[DUG] Is this a hardware fault or IDE bug?

2010-12-20 Thread John Bird
D2007 IDE – I have noticed a consistent problem – when the PC gets hot, the cursor will unexpectedly jump to wherever the mouse pointer/insert pointer is, and typing happens there. As you can imagine its a good way to wreck perfectly good code!. I am assuming its a fault in the hardware as

Re: [DUG] Delphi talking to C#

2010-12-13 Thread John Bird
?As others said, I reckon best way depends on what type of comms is going on. If its a large amount of structured data a file can make sense. If response times and two way communication is important then you need something event driven, such as socket or TCP. The filewatcher you are using is

Re: [DUG] Problem redeeming Delphi XE BOGO free product

2010-12-13 Thread John Bird
?Yes I find I have to run more than one browser to get every web site working. I take it to the extreme admittedly - I have Firefox V4 beta 8 pre-release (nightly build), Chrome, Chrome V10 beta (Canary build), Opera v10, IE9 beta. My internet banking was not working with Firefox V4 for a

Re: [DUG] Problem redeeming Delphi XE BOGO free product

2010-12-13 Thread John Bird
?[Browsers contd] 10 seconds to page loaded is impressive when there are 269 tabs open in 20 groups, current group has 20+ tabs so all of those are pretty much loaded too - so yes that is fast. 1 or 2 tabs is a lot faster again. lots of tabs is useful if the browser handles it effortlessly,

Re: [DUG] Problem redeeming Delphi XE BOGO free product

2010-12-13 Thread John Bird
?Nope - I mean it organises your currently loaded tabs into different groups, and can show them in multiple ways including thumbnails. I do mean tabs into groups. Saved behind the scenes by the same SQLite engine (Session store) which saves bookmarks and history. John From: Jolyon Smith

[DUG] Web Sockets security hole

2010-12-12 Thread John Bird
Here is a reference I picked up on the Firefox list about a a security hole in Web Sockets – and affects Java, Flash and HTML5. Research done by Adam Barth of Google. http://www.ietf.org/mail-archive/web/hybi/current/msg04744.html http://www.adambarth.com/experimental/websocket.pdf

Re: [DUG] Web Sockets security hole

2010-12-12 Thread John Bird
] On Behalf Of John Bird Sent: Monday, 13 December 2010 11:08 To: NZ Borland Developers Group - Delphi List Subject: [DUG] Web Sockets security hole Here is a reference I picked up on the Firefox list about a a security hole in Web Sockets – and affects Java, Flash and HTML5. Research done

Re: [DUG] Help Detecting Windows Version

2010-12-12 Thread John Bird
?http://stackoverflow.com/questions/601089/detect-whether-current-windows-version-is-32-bit-or-64-bit easiest way depends on whether Windows 7 or Server 2008, or older. Simplest and most general over windows versions looks to be ProgramFiles(x86) environment variable which is only set on 64 bit

Re: [DUG] Help Detecting Windows Version

2010-12-12 Thread John Bird
... ;) -Original Message- From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of John Bird Sent: Monday, 13 December 2010 13:47 To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] Help Detecting Windows Version ?http://stackoverflow.com/questions

Re: [DUG] Toolsets (was Re: Company closing)

2010-11-30 Thread John Bird
I sort of disagree - A common VCL is the ideal solution. What makes Delphi a success on Windows is that it is Pascal and also close enough to the Windows controls that it produces what looks like native Windows applications, using the best of Windows XP/Vista/7 appearances. If they do a Mac

[DUG] Test

2010-11-29 Thread John Bird
Test – sent two messages some hours earlier and neither appeared yet John___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to

[DUG] Fw: Icon creation

2010-11-29 Thread John Bird
://www.salespartner.co.nz PO Box 13085 Johnsonville Wellington On 9/11/2010 5:32 p.m., John Bird wrote: I have never read up on best practices/sizes etc for creating program icons and BMP files for buttons/images etc. Anyone got any good references to read up further?? q1 – I have figured how

[DUG] Fw: DelphiDroid

2010-11-29 Thread John Bird
Wellington On 29/11/2010 12:08 p.m., John Bird wrote: ?http://lenniedevilliers.blogspot.com/2010/09/delphi-for-android-sneak-previ ew.html Just checked out the DelphiDroid - not sure what state its at but simple examples are at least working - see a sneak peek video at the above address. Says been

Re: [DUG] Company closing

2010-11-28 Thread John Bird
?http://lenniedevilliers.blogspot.com/2010/09/delphi-for-android-sneak-preview.html Just checked out the DelphiDroid - not sure what state its at but simple examples are at least working - see a sneak peek video at the above address. Says been tested with Delphi 6.0, 7.0, 2005, 2006 and 2010.

Re: [DUG] Icon creation

2010-11-28 Thread John Bird
://www.salespartner.co.nz PO Box 13085 Johnsonville Wellington On 9/11/2010 5:32 p.m., John Bird wrote: I have never read up on best practices/sizes etc for creating program icons and BMP files for buttons/images etc. Anyone got any good references to read up further?? q1 – I have figured how

Re: [DUG] DelphiDroid

2010-11-28 Thread John Bird
://www.salespartner.co.nz PO Box 13085 Johnsonville Wellington On 29/11/2010 12:08 p.m., John Bird wrote: ?http://lenniedevilliers.blogspot.com/2010/09/delphi-for-android-sneak-previ ew.html Just checked out the DelphiDroid - not sure what state its at but simple examples are at least working - see a sneak peek

Re: [DUG] Company closing

2010-11-26 Thread John Bird
?IT work is expected to pick up over the next few months. Just checked out the latest language surveys at http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html Top ones are still Java, C, C++, PHP, C#, Python. Delphi at number 12. Java at 18% currently score more than 3x C# at

Re: [DUG] Upgrading to XE - Unicode strings questions

2010-11-23 Thread John Bird
Iterating over a string is for the purpose of doing something with each individual character..whether it is a ‘A’ or a 'A' with a ^ (caret) on top of it. When I said the number of bytes in a character varies I was not meaning the number of bytes in a Char - I was meaning the total

Re: [DUG] Upgrading to XE - Unicode strings questions

2010-11-23 Thread John Bird
?I read in one of the references that UTF-32 was a more common standard on Unix systems - which means I guess they have chosen the simplest format at the trade off of using more space? I think linux/Windows/MacOS use UTF-16 more commonly... Anyway for the time being, as long as the data in

Re: [DUG] Upgrading to XE - Unicode strings questions

2010-11-22 Thread John Bird
Thanks for the references, so I can answer most of the questions now. Here is what I understand so far, if anyone has anything to add this will be useful! Extra question: It looks like code like for i:=1 to length(string1) do begin DoSomethingWithOneChar(string1[i]);

Re: [DUG] Upgrading to XE - Unicode strings questions

2010-11-22 Thread John Bird
My main remaining question is the best way to handle code that up to now looked like: for i:=1 to length(string1) do begin DoSomethingWithOneChar(string1[i]); end; If I got the gist correctly, string1[i] is one unicode character, but length(string1) is the number of

Re: [DUG] Upgrading to XE - Unicode strings questions

2010-11-22 Thread John Bird
...@delphi.org.nz] On Behalf Of Colin Johnsun Sent: Tuesday, 23 November 2010 14:31 To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] Upgrading to XE - Unicode strings questions I won't answer everything but just on this one question: On 23 November 2010 11:04, John Bird

[DUG] Upgrading to XE - Unicode strings questions

2010-11-17 Thread John Bird
Planning upgrading from D2007 to XE, but want to read up on issues I will need to consider first to do with strings becoming Unicode by default. I recall the release of D2009 came with good white papers explaining ramifications, however I haven’t seen these as I haven’t upgraded. Asked

Re: [DUG] Delphi XE update 1 fails

2010-11-15 Thread John Bird
?Cannot see how this is Embarcaderos fault. I have seen Mail Marshall refuse an attachment with a .ZIP extension. I then sent the ZIP file with a .DAT extension which also got blocked. I had assumed a .DAT was the most general and innocuous and least blocked extension until then (as it

Re: [DUG] D2010 and XE on the same machine

2010-11-08 Thread John Bird
Is this IDEFixPack worth installing for D2007? This rings a bell – I might have tried this or something like it when D2007 first came out, and it made little difference. What really did make a huge difference was doubling my RAM. It was obviously having to swap different parts of the IDE

[DUG] Icon creation

2010-11-08 Thread John Bird
I have never read up on best practices/sizes etc for creating program icons and BMP files for buttons/images etc. Anyone got any good references to read up further?? q1 – I have figured how to create a BMP with transparent background for bit buttons etc so the image is not square. How do I

[DUG] Duplicate post

2010-11-08 Thread John Bird
Forgive the duplicate post. This time not my fault – someone at Telstra is no doubt sweating and swearing and cursing trying to get their email systems going again including Paradise, so looks like they are sending some messages twice. John___ NZ

Re: [DUG] Solid State Drives

2010-11-06 Thread John Bird
?Sort of similar config, except 32bit Windows 7 with 4GB Ram, and a VMware XP with D2007 and 1GB allocated. I find the performance of the VMWare virtual PC the worst aspect of it - the XP virtual machine is really prone to triggering intense disk writes - which looks like Windows XP starting

Re: [DUG] Barcamp possibly?

2010-10-27 Thread John Bird
Would be very interested. Was talking to Gary B (who runs the list) – he also has been thinking of setting up a library where people can contribute code for benefit of others, and pick up others tricks.I for instance do all my printing with Rave by displaying the stuff on the screen in

Re: [DUG] Barcamp possibly?

2010-10-27 Thread John Bird
?I don't think it would be hard to find topics - For instance off the top of my head: -it would be interesting to see the sort of programs others are doing -Their favourite tips and tricks -some IDE/OO/language education and explanations -debugging techniques -tools that others use and how they

Re: [DUG] Delphi Specials

2010-10-21 Thread John Bird
 John From: Jolyon Smith Sent: Friday, October 22, 2010 8:53 AM To: 'NZ Borland Developers Group - Delphi List' Subject: Re: [DUG] Delphi Specials Ø Aw nuts you are just being a stirrer. Why is pointing out facts considered stirring? I think the best answer to that is the one Josh

Re: [DUG] Delphi Specials

2010-10-21 Thread John Bird
I agree, something with real limitations but real usefulness. A Turbo version would be great. Possible ideas would be 1 – Executables only run on the PC with the Turbo licence. otherwise full version but cheap 2 – Executables have a built in expiry date of 1 year from when compiled.

Re: [DUG] Delphi Specials

2010-10-21 Thread John Bird
?Maybe a related topic - How to make it easy to upgrade. The main reasons I hear from others for not upgrading are (with my experience in brackets): 1 - locked into 3rd party components with no new versions or expensive new versions [I luckily have steered clear of addon components, except

Re: [DUG] Delphi Specials

2010-10-20 Thread John Bird
Well thats nuts. As a user of both Delphi 5 and D2007, you would have to be nuts to want to work in D5 if you spend any time programming. It works, and quite well, but D2007 and later are so much nicer, and faster to do stuff.If you value your time and are programming for anything

[DUG] Finding system settings

2010-10-20 Thread John Bird
I would like to find some system settings - eg volume ID of a drive (which might be a network drive), and time zone. Any suggestions? Related - I recall seeing a unit somewhere years ago that showed a lot of windows settings (eg Windir) I am not sure what it was and where, anyone know of

Re: [DUG] Delphi Specials

2010-10-20 Thread John Bird
Aw nuts you are just being a stirrer. I actually use D5 and D2007 both a lot for work. So thats my experience – I greatly prefer D2007. For me a pro upgrade is $600-700 so thats also true. The point about Windows updates are: MS updates Windows still (mind you only XP SP3 onwards now) not

Re: [DUG] Just in case you missed it

2010-10-17 Thread John Bird
Is there a mailing list to get offers like this? I hadn’t heard of this or the XE event until it came up here on the Delphi list. Please add me to any such lists. John From: Richard Vowles Sent: Monday, October 18, 2010 12:33 PM To: NZ Borland Developers Group - Delphi List Subject: [DUG]

Re: [DUG] Just in case you missed it

2010-10-17 Thread John Bird
How much longer is upgrade from D2007 likely to be counted as an upgrade – any ideas or hints? John Hi Paul, Everyone who doesn't have a 2010 version of the product (Delphi/C++/RAD Studio), if you are on 2009, 2007 or 2006 upgrade-wise or earlier (who have to purchase new now). On 18

[DUG] Rave printing

2010-10-12 Thread John Bird
?I have a generalised routine for printing forms using Rave reports D2007. I struck an interesting problem printing contents of a DBGrid showing columns from a MSSQL database - I think its because the fields are null or a type (eg binary) that ClientDataSets cannot display. Printing that

Re: [DUG] You're gonna get an invite tonight!

2010-10-05 Thread John Bird
Yeah – what invite? I am waiting too. John Hi Richard I'm still waiting for my invite - you can send it to my work address if that's easier. davi...@pegasus.org.nz Cheers David On 30/09/10 16:14, Richard Vowles wrote: Hi guys, If all goes to plan, you should get some email from us

Re: [DUG] Rad Studio XE Enterprise

2010-09-27 Thread John Bird
Ha - does it still do that? (D2007 here) The instant compiler does not always find stuff. Such as TEdit for instance. As long as normal compile works I can live with it John Anyone actually using XE yet? We're using 2009 and still some buggy things in the IDE which would make me

[DUG] integer or int64

2010-09-20 Thread John Bird
Quite a few built in Delphi functions accept either integer or int64 as an argument, I checked into inttostr for instance, in that case its asm code. I have quite a few standard number processing routines, and up to now have done one version for integer, and another for int64. Is it feasible

Re: [DUG] integer or int64

2010-09-20 Thread John Bird
I have a calculator program, beyond certain size numbers it resorts to real numbers, when sometimes I want exact integers. eg 17! (17Factorial) is the highest I can get exactly (17*16*15 etc.), 18! turns to a real number and I don't know if I am losing digits. Another example of large

Re: [DUG] Pasting components from code

2010-09-17 Thread John Bird
Thanks, I had sort of figured it out, but I didn't know the reason. John So before the initial private (or any other) visiblity directive. ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin:

[DUG] Pasting components from code

2010-09-16 Thread John Bird
I have a source generation program to speed creating of sets of labels and edit boxes on a form - which gives output like examples below. I paste the code that goes in the DFM onto the form, and it creates all the components - a neat Delphi trick for those who might not know. My problem is

Re: [DUG] Pasting components from code

2010-09-16 Thread John Bird
The correct spot being? (that was my question! - there looks to be rules I did not know about. ) Form inheritance - not applicable so much in this case, as the set of labels and edit boxes vary totally from case to case. I just got tired of the repetitive task of creating large sets of

Re: [DUG] Delphi

2010-09-08 Thread John Bird
Thats a cute program! Only correction needed is spelling - (Magnitude). The icon is spookily appropriate - did you make it yourself or do you have access to a site with earthquake icons? John From: Jeremy Coulter Sent: Wednesday, September 08, 2010 6:50 PM To: 'NZ Borland Developers

Re: [DUG] Delphi

2010-09-08 Thread John Bird
Out of curiosity what is the page control you are using and the chart component? I like both John HI guys. Here is the URL. http://www.telsoft.net.nz/downloads/quake/QuakeCheck.zip There might be the odd bug. I was really only doing it for my own amusement, but nothing too obvious has

Re: [DUG] Delphi

2010-09-07 Thread John Bird
d.. Magnitude: 3.4 e.. Depth: 8 km f.. Details: 10 km south-west of Christchurch My house is in Mt Pleasant, but have been in Ak the last week. Decidedly mixed feelings about not being there. House was OK last report, but thats some 30 aftershocks ago! John Bird JBCL Contact

Re: [DUG] SetWindowPos HWND_TOPMOST

2010-08-23 Thread John Bird
Not just Delphi - its an ancient Windows problem AFAIK. Even in Windows 7 I have seen a control panel applets puts a modal dialog behind the window - often the best solution is Windows+D (show desktop) and go thru all windows with alt+Tab and usually the hidden modal dialog is found.

Re: [DUG] Sending notification between programs

2010-08-18 Thread John Bird
. -- From: John Bird johnkb...@paradise.net.nz Sent: Wednesday, August 18, 2010 4:43 PM To: NZ Borland Developers Group - Delphi List delphi@delphi.org.nz Subject: [DUG] Sending notification between programs Which way would you favour to do

Re: [DUG] Sending notification between programs

2010-08-18 Thread John Bird
I had thought of something just like this, having something in the data being what B looks for and acts on, otherwise sleeps. However this makes it disk based, and B has to poll. I was hoping something simple in memory could wake up B rather than referring to the filesystem. The main

[DUG] Sending notification between programs

2010-08-17 Thread John Bird
Which way would you favour to do the following ? I have two Delphi programs (A and B) that I will pass data from A to B - I will probably use a file to put the data in because its quite structured. B will sleep on a timer loop until this something is triggered. What I want to do is send a

Re: [DUG] MSSQL ID field binary(8)

2010-08-16 Thread John Bird
I think I have to agree with your words[5] and words[6] . Where - words:array[0..xxx] of string; John I work on systems where some idiot used a decimal(9,0) as a PK and mixed it with other tables with integers, I think with any PK the main thing is use the same otherwise you force the

Re: [DUG] MSSQL ID field binary(8)

2010-08-05 Thread John Bird
MessageDealing with index/ID field that is set as binary - here is the solution that worked in case any one else comes across same Note for MSSQL using such a field in a JOIN SQL statement would be perfectly fine as normal, as MSSQL has a native binary type. Delphi ADO however does not,

[DUG] MSSQL ID field binary(8)

2010-08-01 Thread John Bird
Dealing with a MSSQL database where the ID field is defined as Binary ( 8 ) and using D2007 / ADO. I can open the table and read in data, but I cannot figure out: 1 - how to get the ID value out of this field - when displayed a grid shows this column as (BYTES), if I try to get the value as

[DUG] Another Desktop Clock giveaway

2010-07-28 Thread John Bird
A Windows 7 Clock look-alike this time - a bit smaller, fainter and more refined than the last one. For screenshots, scroll to the bottom of this page: http://sites.google.com/site/jbclnz2/abouttime Email me if you would like a copy - standalone exe of 480K. Written using D2007/Windows 7.

Re: [DUG] faster TreeView

2010-07-26 Thread John Bird
Any good reference tutorials on using this? I looked at it some years ago and was quite baffled where to start. Speaking as someone used to driving the drawcell events on standard stringgrids I would like to explore the stuff it can do. John Is that not also the one that Embarcadero use too

Re: [DUG] 96DPI and 120DPI

2010-07-21 Thread John Bird
Well as I understand using 120DPI is for the same reason - making app windows larger and easier to read on the screen - or at least the text larger. I have users with oldest to newest screens - from about 800x600 up to 1920x1024 so I have to do something like this for the form to be fairly

  1   2   3   4   >