RE: [DUG]: array of TStringList

2001-07-05 Thread Stephen Barker
You could also look at using a TObjectList instead of an array to hold the stringlists. It has the added advantage of freeing the objects when the list item is deleted. From D5 help: TObjectList maintains a list of (owned) objects. Unit contnrs Description Use a TObjectList to store and

RE: [DUG]: Exception Handling (Delphi 5)

2001-06-21 Thread Stephen Barker
Sam, if you're just trapping strtoint convert errors then try: strtointdef(get_markitem(2,msg), 0); regards, Steve -Original Message- From: Sam Clarke [mailto:[EMAIL PROTECTED]] Sent: Thursday, 21 June 2001 15:27 To: Multiple recipients of list delphi Subject: RE: [DUG]:

RE: [DUG]: Multi user data

2001-06-18 Thread Stephen Barker
As a minimum you should: make sure both pc's bde are pointing to the same netfile, and preferably have this in a separate subdir, e.g. \appdir\data \appdir\data\netdir ... set localshare true on both pc's on your app startup, set the session.netdir, and also set the session.privatedir

RE: [DUG]: String in Case Statement

2001-06-07 Thread Stephen Barker
Or alternatively: var sl : TStringList; ... sl.CommaText := 'Fred,Jim,Wally,Elephants'; case sl.IndexOf(MyString) of -1: // not found 0: ... end; Steve -Original Message- From: Dave [mailto:[EMAIL PROTECTED]] Sent: Thursday, 7 June 2001 20:35 To: Multiple

RE: [DUG]: SQL Server 7

2001-06-07 Thread Stephen Barker
Dave, I'm not very experienced with MS SQL Server but I've just been down that same track a couple of weeks ago. I tried various solutions including BDE,ODBC,native API, direct ADO without components, but what worked best for me was actually some freeware ADO components found at:

RE: [DUG]: MS SQL, IIS and Delphi API

2001-05-27 Thread Stephen Barker
Jim, If you're still having problems, have you looked at the Zeos components? They include direct API access to popular db's including MS SQL. I can't get onto their web site (http://www.zeoslib.org/) just now but an extract from the readme is: Zeos Database Objects is a Delphi's components

[DUG]: Kylix price drop?

2001-05-23 Thread Stephen Barker
Is this new pricing? http://shop.borland.com/Product/0,1057,3-15-CQ100479,00.html Steve --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To

RE: [DUG]: Kylix price drop?

2001-05-23 Thread Stephen Barker
Nic, do you know if the webbroker components in kylix server are available as upgrade from desktop? alternatively has anyone heard of other Apache components available which could be used from desktop? I'd even settle for an equivalent to the ECB object in ISAPI. I just can't justify buying

[DUG]: TComboBox keys

2001-05-22 Thread Stephen Barker
Hi, does anyone know how to make a TComboBox do incremental searching? by default it only seems to search on the first character. I tried concatenating key values and setting the itemindex to the correct item, but the default behaviour still takes over. in the keydown event I have: procedure

RE: [DUG]: TComboBox keys

2001-05-22 Thread Stephen Barker
); Keyascii := chr(0); end else begin messagebeep(0); cbo.Text := GS; end; finally freemem(sbuffer, 255); end; end; Mark - Original Message - From: Stephen Barker [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED

RE: [DUG]: Delphi 3 Delphi 5 differences with DLL's?

2001-05-21 Thread Stephen Barker
Jason, try specifying the dll extension: CreateMutex(nil, False, 'AladdinsWD.dll'); from memory I had a similar problem a couple of years ago where NT4's loadlibrary api call is different from other win's and doesn't default the dll extension. HTH Steve -Original Message-

RE: [DUG]: ISAPIs and Threads

2001-05-02 Thread Stephen Barker
Mark, I don't use the webbroker architecture so correct me if I'm wrong but each thread instantiates a new webmodule so putting it here may be safe but not what you want if it is data that should be global. If it is truly global data then make a global object to hold this and put critical

RE: [DUG]: MS SQL Server

2001-05-01 Thread Stephen Barker
. If not, it may be simpler (for me) to install IB6 and use IBX components. thanks, Steve - Original Message - From: Stephen Barker [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Tuesday, 1 May 2001 18:19 Subject: [DUG]: MS SQL Server Hi all, I have

RE: [DUG]: IDE Shortcut?

2001-05-01 Thread Stephen Barker
Not that I know of - although Ctrl-Shift-I works and is marginally easier. Steve -Original Message- From: James Low [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 2 May 2001 13:51 To: Multiple recipients of list delphi Subject: RE: [DUG]: IDE Shortcut? While on this IDE thing, is

[DUG]: MS SQL Server

2001-05-01 Thread Stephen Barker
Hi all, I have a customer who has SQL Server 6.5 already for an existing MRP app, and wants to use this as the database for a new project in Delphi. I'm new to using SQL Server from Delphi, so are there any gotchas I should know about? How should I be connecting given d5pro not enterprise. Any

RE: [DUG]: BDE Error $2B32

2001-04-17 Thread Stephen Barker
I would definately be setting the private dir to somewhere where you know you have the right permissions. I have had similar problems with ISAPI using BDE as well as non-BDE (DBISAM). Otherwise the first app may be OK, but it or something else changes the current dir and the second app fails.

RE: [DUG]: BDE Error $2B32

2001-04-12 Thread Stephen Barker
Just for fun, try increasing permissions on the c:\winnt\system32 dir - I seem to recall some BDE issues with Win2k and this. Gary would remember... May even be linked with the session.privatedir setting especially if the BDE is creating temp files during the query. regards, Steve

RE: [DUG]: Debugging an ISAPI

2001-04-10 Thread Stephen Barker
Mark, 1.you can run iis as a process rather than a service and use inetinfo.exe as the host application for your isapi dll 2. try Intrabob (can't remember the url) 3. OmniHTTPd : I prefer to use this web server for local testing: http://www.omnicron.ca regards, Steve -Original

RE: [DUG]: SQL Query Builder

2001-04-02 Thread Stephen Barker
Neven, I didn't get around to persevering with either of these and ended up writing my own (mainly because I needed to include stored procedures), but they looked promising at the time last year: http://www.DuckTech.com http://www.korzh.com/ regards, Steve -Original Message- From:

RE: Re: [DUG]: ISAPI dlls...

2001-04-01 Thread Stephen Barker
Mark, I have had good success lately using file-based databases as the overhead of database connections is avoided. I currently favour DBISAM for this. When I have used Interbase in the past I implemented connection pooling. Each thread instantiates a new tsession and tquery and sets the

RE: [DUG]: Checking a process is running

2001-03-20 Thread Stephen Barker
you could also look into the performance monitor api stuff, but if it's just for your own server and you only want to know if it is running I would do the quick and dirty: shellexecute'tlist.exe tlist.txt' and look for appname in the text file tlist.exe is part of the NT resource kit.

RE: [DUG]: SQL question

2001-03-12 Thread Stephen Barker
Hey good timing Neven, I was just about to start looking for an alternative to COUNT(DISTINCT(idno)) for a database that doesn't support it. Now I'll try your sum(1). thanks, Steve -Original Message- From: Neven MacEwan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 13 March 2001 16:19

RE: [DUG]: D3 - ClientDataSet

2001-02-06 Thread Stephen Barker
I can recommend DBISAM - compiles into exe, supports SQL, convert utility from Paradox/dBase etc. www.elevatesoft.com regards, Steve -Original Message- From: Bird, Geoff GD [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 7 February 2001 09:58 To: Multiple recipients of list delphi

RE: [DUG]: UK Borland User Group Developer Information Library CD

2001-01-30 Thread Stephen Barker
Yes, regards, Steve -Original Message- From: Gary T. Benner [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 31 January 2001 08:41 To: Multiple recipients of list delphi Subject: [DUG]: UK Borland User Group Developer Information Library CD HI Guys, This excellent subscription

[DUG]: accurate timing

2000-12-14 Thread Stephen Barker
Hi all, I have a job coming up early next year which will require accurate timings for process control down to 1ms. The customer already has a dll for VB which covers this, but of course I will be doing this job in Delphi. Any pointers to api's, components etc would be appreciated. thanks,

RE: [DUG]: accurate timing

2000-12-14 Thread Stephen Barker
timing Import the functions from the DLL into Delphi? This should be easy enough looking at the VB source code. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Stephen Barker Sent: Friday, 15 December 2000 11:01 To: Multiple recipients

RE: [DUG]: Rebooting a computer in Pascal

2000-10-25 Thread Stephen Barker
Jeremy, you could use an old 3rd party dos util which can be called from a batch file, and stuffs the keyboard buffer with values prior to running your prog. I have a few of these tucked away and can dig them up if you want. Steve -Original Message- From: Jeremy Coulter [mailto:[EMAIL

RE: [DUG]: [Q] Lightweight SMTP....

2000-09-20 Thread Stephen Barker
You could connect to a SMTP server using sockets then talk SMTP with commands like: HELO MAIL FROM: ... RCPT TO: ... DATA ... . QUIT You need to find some code for sockets if you don't want to use 3rd party components. I recall using some stuff from dWinsock a few years back with Delphi 1, and

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

2000-09-14 Thread Stephen Barker
well we've done some simple testing and found under heavy load (muliple threads - ISAPI) IBX works more reliably and slightly faster than either BDE or IBO. (for our purposes anyway). For our stuff to date it has only been fairly simple selects, updates and inserts - no stored procedures etc.

RE: [DUG]: D4 D5 on the same machine

2000-08-29 Thread Stephen Barker
as Nic said - I have d1, d2, d3, d4, d5 all running on same machine, although all my d2 projects were migrated to d3 way back. Others are being migrated to d5 if and when necessary. download and install latest BDE last Steve -Original Message- From: Steve Peacocke [mailto:[EMAIL

RE: [DUG]: BDE alternatives

2000-08-27 Thread Stephen Barker
try http://www.kylecordes.com/ regards, Steve -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 29 August 2000 01:33 To: Multiple recipients of list delphi Subject: [DUG]: BDE alternatives HI all.is there a site I can goto to see a list

RE: [DUG]: The future Database Access

2000-07-30 Thread Stephen Barker
Neven, last Borland conference (Brisbane last Oct) it was announced from memory that such a component would be released shortly and posted on the web site. The intention was to get D Pro developers out from Paradox/BDE/cached updates situation and into a clientdataset type scenario. I'll look

RE: [DUG]: Accessing The Registry

2000-05-21 Thread Stephen Barker
What we do Tony in our ISAPI stuff is put an ini file in the windows directory, which although not the best, at least it is always there. Inside the ini file of course we have paths for database etc. regards, Steve -Original Message- From: Nic Wise [mailto:[EMAIL PROTECTED]] Sent:

RE: [DUG]: decimal-aligned text

2000-05-04 Thread Stephen Barker
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Stephen Barker Sent: Thursday, 4 May 2000 02:30 To: Multiple recipients of list delphi Subject: [DUG]: decimal-aligned text Does anyone have any code (pascal, c, whatever) that right-aligns text or preferably decimal

[DUG]: decimal-aligned text

2000-05-03 Thread Stephen Barker
Does anyone have any code (pascal, c, whatever) that right-aligns text or preferably decimal-aligns numbers when using proportional fonts? I can't use Win api for this - I need actual code example as it's for an old Dos application printing using HPGL. ta, Steve.

RE: [DUG]: Simple DB app

2000-05-03 Thread Stephen Barker
take a look at dbisam: www.elevatesoft.com Cons: tables and indexes are stored as separate files. Pros: no BDE, supports SQL, fast, small... regards, Steve -Original Message- From: Neven MacEwan [mailto:[EMAIL PROTECTED]] Sent: Thursday, 4 May 2000 17:49 To: Multiple recipients of

RE: [DUG]: EMail

2000-04-21 Thread Stephen Barker
-Original Message- From: Tony Sinclair [mailto:[EMAIL PROTECTED]] Sent: Thursday, 20 April 2000 11:44 To: Multiple recipients of list delphi Subject: [DUG]: EMail Hi all, has anyone created an ISAPI dll in Delphi before and sent an e-mail message via IIS 4.0? If anyone

RE: [DUG]: Component Palette Icons

2000-03-26 Thread Stephen Barker
. Any other ideas? Is the list up? I have had no DUG mail since this morning. Mark Stephen Barker wrote: video driver problems usually, try changing video settings and/or driver. if on board video, try changing the amount of system ram it grabs Steve -Original

RE: [DUG]: Component Palette Icons

2000-03-26 Thread Stephen Barker
Stephen - what do you mean by wrong?? On my machine, the images are displayed correctly - it's just that they are the wrong images. eg on the Data Access pallette, the Database componemt is represented by the Button icon and the Session component by the CheckBox icon. Is this the sort

RE: [DUG]: Installation problem - 2

2000-03-09 Thread Stephen Barker
Title: from DOS: subst x: c:\delphi4\install then from explorer run setup.exe from the x: drive. regards, Steve -Original Message-From: John Christenhusz [mailto:[EMAIL PROTECTED]]Sent: Friday, 10 March 2000 08:32To: Multiple recipients of list delphiSubject: RE:

RE: [DUG]: Pirateing

2000-02-19 Thread Stephen Barker
Al, Win 95 has the key: HKLM\Software\Microsoft\Windows\CurrentVersion\FirstInstallDateTime which we use along with other stuff Can't find an equivalent in NT though. Steve -Original Message- From: Alistair George [mailto:[EMAIL PROTECTED]] Sent: Friday, 18 February 2000 08:40

RE: [DUG]: String - Char

2000-02-16 Thread Stephen Barker
-Original Message- From: gajo [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 16 February 2000 23:29 To: Multiple recipients of list delphi Subject: [DUG]: String - Char I have a string, for example "test".. Now I want to take the t letter out and convert it to number.. But to

RE: [DUG]: Interbase Error : What am I missing here??? (Interbase Newbie)

2000-02-04 Thread Stephen Barker
We use an external data dictionary - actually just an ini file containing all field and index defs and a flag to signal if something has changed. Every app has code to check this flag and if set compare tables and restructure/index/copy data as appropriate. Updates - easy, just send out a new

RE: [DUG]: Problem with StartFTP on NT

2000-02-04 Thread Stephen Barker
Are you trying to go through a proxy like wingate? We had similar probs with TStarFTP until we got the settings right for wingate. Steve -Original Message- From: Neil Anderson [mailto:[EMAIL PROTECTED]] Sent: Friday, 4 February 2000 08:02 To: Multiple recipients of list delphi

RE: [DUG]: Data aware controls [was: ADO access]

2000-02-01 Thread Stephen Barker
CDS is a terrific solution I think we will see Cached Object replaced with a New Component based on CDS technology for the Professional version sometime in the future. Tony, at the Aussie conference last year Inprise announced that a CDS-like component would be made freely available for

RE: [DUG]: Delphi 3 not working for unknown reasons

2000-01-23 Thread Stephen Barker
Along the same lines... we have had similar problems with Win98 and NT4 and vga drivers (locking up and not displaying component icons correctly etc). Get the latest driver from the card manufacturer or try a different card. I observed problems with cards from Legend as well as S3-based cards.

RE: [DUG]: Scanning from Delphi

2000-01-17 Thread Stephen Barker
Al, Which version of imagelib gave you grief? I'm still using a really old one I got for Delphi 1 and 2 (ver 3.1?) and it still does the job. Steve -Original Message- From: Alistair George [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 18 January 2000 09:52 To: Multiple recipients of

RE: [DUG]: Scanning from Delphi

2000-01-16 Thread Stephen Barker
Yes, but only using a 3rd party component library called imagelib. Steve -Original Message- From: Neven MacEwan [mailto:[EMAIL PROTECTED]] Sent: Monday, 17 January 2000 13:42 To: Multiple recipients of list delphi Subject: [DUG]: Scanning from Delphi Hiya All Has anyone

RE: [DUG]: Algorithm needed......

2000-01-09 Thread Stephen Barker
I've got an expression parser that originally came as sample code with an early version of turbo pascal or one of the toolbox add-ons. It was a spreadsheet example called microcalc from memory. There is also bound to be something on the DSP. Steve -Original Message- From: Donovan J.

[DUG]: Brisbane Conference in Nov.

1999-09-29 Thread Stephen Barker
Hi all, who else is going or thinking about it? I would like to get together a group if possible as we should be able to get a discount on the reg. fee if 5 of us register together. Earlybird registration ends on 8th Oct. regards, Steve Barker

RE: [DUG]: System Resources

1999-08-21 Thread Stephen Barker
Rohit, we have Japanese Win 95 here if you want to borrow it - we use it on occasion to test software for our Japanese customers. Steve. Forrest Hill Ph 410 3074 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, 20 August 1999 00:26 To: Multiple

Re: [DUG]: Windows versions

1999-06-08 Thread Stephen Barker
win98: 4.10 winnt4 server sp3: 4.0 winnt4 ws sp3: 4.0 winnt4 sbs sp3: 4.0 regards, Steve. -Original Message- From: Chris Crowe [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Date: Wednesday, 9 June 1999 09:46 Subject: [DUG]: Windows versions Hi all Can

Re: [DUG]: Grid Components..

1999-04-24 Thread Stephen Barker
I do something like: in the registry, save grid width or height (depending on alignment) save fieldname and column index position pairs. save fieldwidths restore settings on form show save settings on form close you may also want to save the form top,left,width,height properties as well as

Re: [DUG]: dbf indexes

1999-03-17 Thread Stephen Barker
OK, I couldn't find this on the web site, but I found it on the latest conference CD: \BorlandOnline\docs\v0002329.htm I have uploaded the text content of this page to : ftp://www.delphi.org.nz/DUG/dBaseExpr.txt regards, Steve. -Original Message- From: Simon Mahony [EMAIL PROTECTED]

Re: [DUG]: dbf indexes

1999-03-16 Thread Stephen Barker
Thanks Steven - I did get this working - I hadn't realised that Delphi supported a few xbase functions for index expressions. Is there any documentation on this? I tried str() and dtos() OK, but others like descend() wouldn't work. Any code fragments on creating indexes would be good, ta.

<    1   2