Re: [DUG]: Array - deleting an element

2001-03-21 Thread Aaron Scott-Boddendijk
); for I := 1 to 4 do A[i-1] := I; N := 1; // Generalised deletion of an index held in N if N(Length(A)-1) then move(A[N+1],A[N],SizeOf(A[0])*Length(A)-(N+1)); SetLength(A,length(A)-1); end; or something like that... -- Aaron Scott-Boddendijk INTAZ Limited +64 7 838 3371 Voice +64

Re: [DUG]: Major Virus Warning

2001-03-13 Thread Aaron Scott-Boddendijk
You've been hoaxed dude -- Aaron@home - Original Message - From: "John Christenhusz" [EMAIL PROTECTED] To: "Multiple recipients of list delphi" [EMAIL PROTECTED] Sent: Wednesday, 14 March 2001 07:41 Subject: [DUG]: Major Virus Warning Hi folks, A new virus has just been

Re: HOAX [DUG]: HOAX Major HOAX Virus HOAX Warning HOAX

2001-03-13 Thread Aaron Scott-Boddendijk
ounce viruses... RANT, Rant, rant... Ok I've calmed down now... -- Aaron Scott-Boddendijk INTAZ Limited +64 7 838 3371 Voice +64 7 838 3372 Fax --- New Zealand Delphi Users group - Delphi List - [EMAIL PR

[DUG]: W2K and Delphi4

2001-03-13 Thread Aaron Scott-Boddendijk
? -- Aaron Scott-Boddendijk INTAZ Limited +64 7 838 3371 Voice +64 7 838 3372 Fax --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email

[DUG]: I wish I didn't have to but...

2001-03-05 Thread Aaron Scott-Boddendijk
container... I get "Cannot create form. No MDI forms are active"... I hate MDI and haven't played with it much - any hints on where the child form trigger can be placed... -- Aaron Scott-Boddendijk INTAZ Limited +64 7 838 3371 Voice +64 7 83

[DUG]: URLMon.dll

2001-02-25 Thread Aaron Scott-Boddendijk
Does anyone know the parameters for URLDownloadToFile in this DLL... The delphi unit says function URLDownloadToFile(p1: IUnknown; p2: PChar; p3: PChar; p4: DWORD; p5: IBindStatusCallback): HResult; stdcall; What is P4... Where can I find Docs on the URLMon dll... -- Aaron Scott-Boddendijk

Re: [DUG]: Help On DataBase

2001-02-19 Thread Aaron Scott-Boddendijk
I'm developing an Application that confronts two person e their born dates and, to do this, i have two ComboBoxes for the names that i get in a name field's table e to a MaskEdit that receives it's Born Date. I'm doing this : // to put tha names available in the database in the comboboxes :

[DUG]: Is this fixed in D5 (Overloading with dynamic Arrays)

2001-02-18 Thread Aaron Scott-Boddendijk
written that could have been but in each case by sheer blind luck static arrays have been adequate). Bugger... I'm surprised that the fact a method is overloaded changes the method signature for exactly the same declaration of parameter types. Comments? -- Aaron Scott-Boddendijk INTAZ Limited +64 7

Re: [DUG]: A Job

2001-01-08 Thread Aaron Scott-Boddendijk
and a text-message firendly version... Down with MSWord bloat Also if it's not a delphi job - post to [EMAIL PROTECTED] which I think would be happy to receive job requests for other computing topics. ...haven't you noticed by the posts - Delphi is dead ;) -- Aaron Scott-Boddendijk INTAZ Limited +64

Re: [DUG]: HAPPY NEW YEAR - LIST ADMIN

2001-01-08 Thread Aaron Scott-Boddendijk
Just so you do not forget, we do have other lists for DATABASE, CPLUSPLUS and INTERBASE topics. Do we need a JBuilder one too? Kylix? Please let me know if you want anything else. We have a Java one thanx very much to Nic Wise I believe... It does get used although not a lot...

Re: [DUG]: AddObject

2000-12-23 Thread Aaron Scott-Boddendijk
There was a thread on this a few weeks ago and I thought I'd give it a try in my spare (?) time. type TFooObject = class(TObject) id : integer; desc : string; role :string; end; This definition is fine... Procedure to add a new Object to the list procedure

Re: [DUG]: Best way to load a buffer

2000-12-17 Thread Aaron Scott-Boddendijk
stuff all dynamic arrays and strings as these are just references in your instance memory space. Add a constructor CreateFromStream which takes a stream and calls loadFromStream to clean up the creation process if you like. -- Aaron Scott-Boddendijk INTAZ Limited +64 7 838 3371 Voice +64 7 838 3372

Re: [DUG]: Xmas Lights virus

2000-12-06 Thread Aaron Scott-Boddendijk
Apparently there is a virus going around in an attachment called "Xmas Lights" - if you receive it I suggest you delete it immediately as it wipes your hard drive. Where did you receive the information? None of the sites I've checked so far know anything about it. Yep even though it

Re: [DUG]: Compile 16bit applications

2000-12-04 Thread Aaron Scott-Boddendijk
have past that support Win32... -- Aaron Scott-Boddendijk INTAZ Limited +64 7 838 3371 Voice +64 7 838 3372 Fax --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http

Re: [DUG]: Compile 16bit applications

2000-12-02 Thread Aaron Scott-Boddendijk
Delphi 3 shipped with Delphi 1 in the package. Yes I know, but I don't have the original Delphi 3, I have a CD with several Delphi and C++ versions that doesn't contain D1... gee... now that sounds legit... -- aaron@home

Re: [DUG]: Is Everyone dead or something ?

2000-11-21 Thread Aaron Scott-Boddendijk
. Identify bottlenecks and address them, the VM is not itself a large bottleneck - mis-application certainly is. -- Aaron Scott-Boddendijk INTAZ Limited +64 7 838 3371 Voice +64 7 838 3372 Fax --- New Zealand Delphi Users

Re: [DUG]: Kylix killer

2000-11-08 Thread Aaron Scott-Boddendijk
as time progresses). IMHO -- Aaron Scott-Boddendijk INTAZ Limited +64 7 838 3371 Voice +64 7 838 3372 Fax --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http

Re: [DUG]: Object Construction

2000-11-06 Thread Aaron Scott-Boddendijk
TDescendant.Create; begin inherited Create; // Whatever you like in here end; I have no idea why it would matter at this point... -- Aaron Scott-Boddendijk INTAZ Limited +64 7 838 3371 Voice +64 7 838 3372 Fax --- New Zealand

Re: [DUG]: procedures within procedures... and scope...

2000-11-02 Thread Aaron Scott-Boddendijk
; begin outer; end. -- Aaron Scott-Boddendijk INTAZ Limited +64 7 838 3371 Voice +64 7 838 3372 Fax --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz

Re: [DUG]: Free inside Create

2000-10-26 Thread Aaron Scott-Boddendijk
still unknowingly do a TMyGadet.Create even if they're not a descendant. -- Aaron Scott-Boddendijk INTAZ Limited +64 7 838 3371 Voice +64 7 838 3372 Fax --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED

Re: [DUG]: Free inside Create

2000-10-26 Thread Aaron Scott-Boddendijk
; // actual constructor code... end; constructor TSpam.Create; begin inherited Create; // raise an exception with predictable results... raise Exception.Create("You cannot instantiate an instance of '+ClassName); end; -- Aaron Scott-Boddendijk INTAZ Limited +64 7 838 3371 Voice

[DUG]: Delphi job

2000-10-18 Thread Aaron Scott-Boddendijk
being: - N-Tier design - Java, JSP/Servelets, EJB - ORACLE database (8i connecting through JDBC) - Full-time - Located in Hamilton - Top equipment - Training available for weaker skill areas. Send expressions of interest and/or CV to [EMAIL PROTECTED] -- Aaron Scott

Re: [DUG]: Query Parameters

2000-10-17 Thread Aaron Scott-Boddendijk
prepare... NB: Note the string specification... I'm assuming since your filter is a string that the parameters going in are strings too... This could be the problem with the query... is cell_id a string or a number? -- Aaron Scott-Boddendijk INTAZ Limited +64 7 838 3371 Voice +64 7 838 3372 Fax

Re: [DUG]: Query Parameters

2000-10-17 Thread Aaron Scott-Boddendijk
a parameter to field in this case... Which I haven't tried... -- Aaron Scott-Boddendijk INTAZ Limited +64 7 838 3371 Voice +64 7 838 3372 Fax --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED

Re: [DUG]: Equivelent Function ?

2000-10-08 Thread Aaron Scott-Boddendijk
thing like StringOfChar(' ',Trunc(FloatingValue)); would produce equivelent effects to the MS command wouldn't it... You certainly can't return 0.5 of a space in a string... -- Aaron Scott-Boddendijk Intaz (07) 838-3371 Voice (07) 83

Re: [DUG]: Equivelent Function ?

2000-10-08 Thread Aaron Scott-Boddendijk
This was a great debate topic may suggestion was that a 2.5 char string was #32#32#16 of course in a Wide string it could be 5 bytes Except then it wouldn't be a space withing the character set of the string. I think it's an obvious point that either rounding or truncation occurs to produce

Re: [DUG]: passing open array parameters

2000-10-07 Thread Aaron Scott-Boddendijk
I read in the Delphi Help that, when an open array parameter is used, a local copy of the array is created into the procedure/function. I would like to pass such sort of arrays (ex: array of Double) as a parameter but, they are too big to make it a good idea. I need to pass them as var

Re: [DUG]: Copying Memory

2000-10-01 Thread Aaron Scott-Boddendijk
is there a VCL method to copy a chuck of memory from a specified pointer to a newly allocated pointer? I know how to do it from Win API but I can't seem to find a VCL method to do it? Move(Source, Dest, NumBytes); actually doesn't move, it's more of a copy... Deals with overlapping memory

Re: [DUG]: Dynamic 2Dimensional Arrays ??

2000-09-19 Thread Aaron Scott-Boddendijk
var iColCount : Integer; begin iColCount:=high(fGridArray[Row]); iColCount:=iColCount + 1 SetLength(fGridArray[row],iColCount); end; I cant see WHY this sould be a problem...seems straight forward, but it just wont set thge new value ! infact, it SEEMED to have set it

[DUG]: RE: ALL ADVERTISEMENTS RECIEVED VIA THE DUG LIST

2000-09-17 Thread Aaron Scott-Boddendijk
bodies at the other end. -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http

[DUG]: TListview

2000-09-07 Thread Aaron Scott-Boddendijk
- [fsStrikeOut] else canvas.font.style := canvas.font.style - [fsStrikeOut]; -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED

Re: [DUG]: Collections or Array of Objects

2000-09-07 Thread Aaron Scott-Boddendijk
. - incremental allocation of resources. Collections Cons - Complexity of implementation - performance is worse than array for small amounts of data which fit the array requirements. - Storage overheads on some effective indexing/ordering models can be quite high. -- Aaron Scott-Boddendijk Jump

Re: Re:[DUG]: Collections or Array of Objects

2000-09-07 Thread Aaron Scott-Boddendijk
and incremental growth exist as much for TList as for arrays and in return you lose type-safety. -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax --- New Zealand Delphi Users group - Delphi

[DUG]: Re: That damned VTeam thing

2000-09-05 Thread Aaron Scott-Boddendijk
but instead have reached you by posting to the Delphi List - unfortunately if you're a regular poster on this list it's likely they do have your address. 8-( -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax

Re: [DUG]: TTreeView

2000-09-05 Thread Aaron Scott-Boddendijk
a stateindex of 0 won't display anything... Put a placeholder image in your imagelist at index 0 and try to set the StateIndex to 1 on your node... -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax

Re: [DUG]: Vteams Fantasy Sports

2000-09-04 Thread Aaron Scott-Boddendijk
? As much as I like the open facility - I think our company members can handle selecting a posting account to solve the spam issue... Gotta hate that spam... -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax

Re: [DUG]: TApplication.MainForm

2000-09-03 Thread Aaron Scott-Boddendijk
that uses Application.CreateForm() You can of course still use... TheDataModule := TTheDataModule.Create(Application); Application.CreateForm(TMainForm,MainForm); -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax

Re: [DUG]: Java on the Delphi List

2000-08-28 Thread Aaron Scott-Boddendijk
... nothing... I'll try a second... Also I notice that the list is restricted to posters being subscribed... Not a serious problem but something to be aware of... -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax

Re: [DUG]: Function Pointers

2000-08-06 Thread Aaron Scott-Boddendijk
has anyone called a exported C function in a dll that receives a function pointer as a parameter. For example the C typedef is: typedef int (* lpfMyFunction)(int); what should I do to pass that in as a parameter? I'm not sure which calling convention is used (stdcall, etc) but the

Re: [DUG]: Coverting Binary Streams

2000-08-03 Thread Aaron Scott-Boddendijk
? var W :Word; MyArray :array[0..1] of Byte; begin MyArray[0] := 1; MyArray[1] := 2; // MyArray[1] is MSB W := (PWord(@MyArray[0]))^; showmessage(inttostr(W)); // MyArray[0] is MSB W := (MyArray[0] SHL 8) + MyArray[1]; showmessage(inttostr(W)); end; -- Aaron Scott-Boddendijk

Re: [DUG]: AD:Family Reunion T Shirts More

2000-07-24 Thread Aaron Scott-Boddendijk
distributed... Can the mailing list software support memberships that can post without recieving any mail. If so we should probably restrict this list to subscribed users. I'd hate to have 3 copies of all mail come to our building though... Damn spammers... Die spammers die... -- Aaron Scott-Boddend

Re: [DUG]: Aaaarrggghhh

2000-07-23 Thread Aaron Scott-Boddendijk
e; try if General_Bits.ReadConfFile('ljch',Temp) then Temp.SaveToFile('c:\windows\desktop\blah.txt'); else MessageDialog(General_bits.Last_Error, mtError, [mbok], 0); finally Temp.Free; end; end; -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371

Re: [DUG]: What is the diff?

2000-07-20 Thread Aaron Scott-Boddendijk
the entire session. with Tform1.Create(nil) do try // Some setup case ShowModal of mrOK: // Some affirmative behaviour mrCancel: // Some cancellation behaviour end; finally Release; end; -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax

Re: [DUG]: Image Reading

2000-07-17 Thread Aaron Scott-Boddendijk
What's the best way to open a bmp file and read the the binary structure of the file? If you're wanting Pixel data use TBitmap.LoadfromFile()... If you're wanting the binary file data use a TFileStream -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax

Re: [DUG]: IB 5.6

2000-07-16 Thread Aaron Scott-Boddendijk
- the fact that minor software option changes so often require a restart is pretty bad... But this should put NT stability in perspective - it can be Quite stable for some uses... -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax

Re: [DUG]: Dynamically Created Components

2000-07-12 Thread Aaron Scott-Boddendijk
a/ Set the owner to nil and destroy it myself b/ Set the owner the same as the parent c/ Set the owner as the form I tend to set Owner as Self AND destroy it myself. It's always handy to have an owner as the component -may- reference it (depend on how its written or used). It

Re: [DUG]: The Comiler Itself

2000-07-11 Thread Aaron Scott-Boddendijk
Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz

Re: [DUG]: Dynamically Created Components

2000-07-11 Thread Aaron Scott-Boddendijk
as soon as possbile - memory is valuable. - Some components are expensive to recreate regularly, instance pooling may speed things up - Lifetimes are managed by the instance pool. -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax

Re: [DUG]: Midas again

2000-07-11 Thread Aaron Scott-Boddendijk
We are (yet again) considering Midas - for a system that has to run immediately following major disaster (especially earthquake) where networks, telecoms and power are unlikely to be immediately available. The attraction of Midas this time is that independent laptops could be used for

Re: [DUG]: Pos

2000-07-09 Thread Aaron Scott-Boddendijk
can you use wildcards in the pos function? Eg Pos('*', strHTML) No... And on the same note... Does anyone have any regexp matching/searching functionality around... -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax

Re: [DUG]: Midas

2000-07-05 Thread Aaron Scott-Boddendijk
I am interested too, for the record. I am considering using it with Oracle, but I understand that Oracle is temperamental and this may be an area where 'angel fear to tread'. I know that ORACLE through SQL Links has not been a problem. If it is through Midas then perhaps one of the other

Re: [DUG]: How do I get new forms to not default to auto-create

2000-07-05 Thread Aaron Scott-Boddendijk
and that once of the undocumented parameters stops the loading of of a project (last project or New project) when the IDE is started Does anyone know the parameter or documentation of the parameters (I'm using D4 Update 3)... -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372

Re: [DUG]: How do I get new forms to not default to auto-create

2000-07-05 Thread Aaron Scott-Boddendijk
... -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz

Re: [DUG]: How do I get new forms to not default to auto-create

2000-07-05 Thread Aaron Scott-Boddendijk
is specified this still isn't quite what I'm after (although that's better than nothing)... I will likely use a batch file which sets HKCU\Software\Borland\Delphi\4.0\Session\Project="" before running delphi and just live with that... Still not ideal though... -- Aaron Scott-Bodde

Re: [DUG]: Deferenced nil pointers AV

2000-06-25 Thread Aaron Scott-Boddendijk
the EAccessViolation... Any uninitialised pointer (including used pointers which have had their memory released) which steps over the legal memory boundary... The exception message should read EAccessViolation and that's enough to identify an dangling pointer dereference. -- Aaron Scott-Boddendijk

Re: [DUG]: Deferenced nil pointers AV

2000-06-25 Thread Aaron Scott-Boddendijk
identify by the Violation address whether the programmer error was lack of initialisation or use after release. -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax --- New Zealand Delphi Users

Re: [DUG]: Deferenced nil pointers AV

2000-06-25 Thread Aaron Scott-Boddendijk
you mean '' is not necessarily going to continue as ORACLE would like to correct this non- compliance as they then can better provide a mapping to Java inside the database. Do MS-SQL, Interbase, Postgress, etc suffer the same limitation. -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371

Re: [DUG]: Deferenced nil pointers AV

2000-06-25 Thread Aaron Scott-Boddendijk
language concepts... -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http

Re: [DUG]: Life stages text

2000-06-22 Thread Aaron Scott-Boddendijk
P! Let us lament the fallen Max :( This is the last place I expected to get this virus from (and the first).. Aint it grand to be running pine/linux and not be susceptable... :P This one's doing the rounds... It's got a slightly damaging payload but nothing serious... It's worth

Re: [DUG]: Talking to Excel.

2000-06-18 Thread Aaron Scott-Boddendijk
results... Shame that OLE doesn't provide the same reflection support as Java ('almost' bug-free and complete)... It's not like OLE is ay faster ;) Ah well... -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax

Re: [DUG]: Talking to Excel.

2000-06-18 Thread Aaron Scott-Boddendijk
to directly create elements like font objects is really handy... -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED

Re: [DUG]: Delphi and XML

2000-06-15 Thread Aaron Scott-Boddendijk
if they want to maximise it's capabilities... NB. Mildly hipocritical here in that I haven't had opportunity to apply interfaces in our existing developments as their design predated D4 - and we didn't want to mix our drinks... ;) -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07

Re: [DUG]: Acrobat and PDR Writer

2000-06-05 Thread Aaron Scott-Boddendijk
ideas? 1. Get a Temporary filename. 2. Save the file using that name 3. Remove the file. If this is done in code, I would expect the user won't see any dialogs. I believe it's also possible to convince the filesystem to delete the file automatically after closing. -- Aaron Scott-Boddendijk Jump

Re: [DUG]: Table update

2000-05-31 Thread Aaron Scott-Boddendijk
When I run the following update dockets set LogPrice = (select LogPrice from Temp where temp.docketno = dockets.docketno) UPDATE Dockets SET LogPrice = ( SELECT LogPrice FROM Temp WHERE Temp.DocketNo=Dockets.DocketNo ) WHERE EXISTS ( SELECT 'X' FROM Temp WHERE

Re: [DUG]: Re: Error Messages (fwd)

2000-05-28 Thread Aaron Scott-Boddendijk
re Useful items I can think of are: __File :String; __Line :Integer; __DateTime :TDateTime; __Method :String; __Class :String; -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax --- New Zeal

Re: [DUG]: Registering classes

2000-05-23 Thread Aaron Scott-Boddendijk
FWIW I too did not receive the original message. This list has got problems Gary! It's been this way for about 6 weeks now... I get the list at work and at home... They differ by four or five messages every day... -- Aaron@home

Re: [DUG]: Stealth

2000-05-18 Thread Aaron Scott-Boddendijk
If it's always invisible why have a form at all... -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax - Original Message - From: Luke Pascoe [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Friday, 19 May 2000 13:13 Subject

Re: [DUG]: Declare const object

2000-05-07 Thread Aaron Scott-Boddendijk
[Repost: since the previous post (Date: Sun, 7 May 2000 13:15:03 +1200) didn't make the round-trip to me] This method is currently I use. But I am not happy about that. Because I want that variable to be logical const, no one should modify it. I want compiler automatic tell me it is an error

Re: [DUG]: Declare const object

2000-05-07 Thread Aaron Scott-Boddendijk
solution. You can remove the singleton part of the model and still allow the read-only property... You will still need to create the object at runtime... There is no const syntax for creating instances of a TObject descendant -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838

Re: [DUG]: Declare const object

2000-05-06 Thread Aaron Scott-Boddendijk
This method is currently I use. But I am not happy about that. Because I want that variable to be logical const, no one should modify it. I want compiler automatic tell me it is an error if in my code I try to modify the value. You can create a field in your object as a property and have the

Re: [DUG]: Declare const object

2000-05-05 Thread Aaron Scott-Boddendijk
You can't declare it like that I'm afraid... the best you could probably do would be unit X; interface TMyClass = class(TObject) public AValue :Integer; constructor Create(AValue :Integer); end; var MyClass :TMyClass; implementation constructor TMyClass.Create(AValue

Re: [DUG]: Interbase problem??

2000-04-17 Thread Aaron Scott-Boddendijk
We have a wee utility that will generate 64,000 records and put them into our interbase db. Thats fine. BUT when we doa select count(id) from TheTable it takes ages to come back, infact I have been waiting arounf 15mins for the data to comback as I type this. The problem happens on both

Re: [DUG]: efficient code

2000-04-16 Thread Aaron Scott-Boddendijk
Just wondering, for a caption that doesn't change very oftern which in more efficient. StateLabel.caption := 'Running'; OR IF StateLabel.Caption 'Running' then StateLabel.Caption := 'Running'; There are 2 sides to this... 1. The cost of the assignment versus the cost of the

Re: [DUG]: thread definition.

2000-04-12 Thread Aaron Scott-Boddendijk
those stamps. Best Case: 3 weeks Average Case: 3 weeks Worst Case: 1 month and 1 week -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax --- New Zealand Delphi Users group - Delphi List

Re: [DUG]: thread definition.

2000-04-12 Thread Aaron Scott-Boddendijk
feedback mechanisms and responsiveness of programs during times when intense processing is being performed. -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax --- New Zealand Delphi Users

Re: [DUG]: thread definition.

2000-04-12 Thread Aaron Scott-Boddendijk
and is done often enough with glue-type applications in some erp environments. Certainly not the most optimal way to go about things - besides which resource locking and synchronisation issues are not nearly as easily managed under these circumstances. -- Aaron Scott-Boddendijk Jump Productions (07) 838

Re: [DUG]: Newbie Question re TFileStream

2000-04-11 Thread Aaron Scott-Boddendijk
CopyFrom(Q2,0); // Copy entire stream from offset 0 finally Free; end; finally Q1.Free; Q2.Free; end; end; -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax

Re: [DUG]: function which returns an object

2000-04-04 Thread Aaron Scott-Boddendijk
); EndUpdate; end; end; var SL :Tstringlist; begin SL := TStringlist.Create; Stringlist.AddStrings(MyFunction('1','2','3',SL)); SL.Free; end; Either way you must free it... -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax

Re: [DUG]: Hiding inherited procedures

2000-03-30 Thread Aaron Scott-Boddendijk
expose methods you want for your new base class... Given how TList is implemented I think it was intended to be encapsulated rather than inherited from... -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax

[DUG]: An annoying problem

2000-03-30 Thread Aaron Scott-Boddendijk
Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz

Re: [DUG]: Whats wrong here?

2000-03-28 Thread Aaron Scott-Boddendijk
semi-colon after the Class Parent I'd also advise assigning a visibility specifier (in this case Public) TTaskList = class(TList) // No semi-colon here... public procedure SaveToFile(const FileName :String); end; -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 83

Re: [DUG]: AVI with tlist create and Delphi 5

2000-03-23 Thread Aaron Scott-Boddendijk
the constructor to initialise it... the former (instance.create) doesn't allocate new memory but just calls the constructor to initialise the indicated memory. So if no valid allocated memory was pointed to by tl you get an AV... -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07

Re: [DUG]: AVI with tlist create and Delphi 5

2000-03-23 Thread Aaron Scott-Boddendijk
// finished with the object. end; -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http

Re: [DUG]: Embedded Form

2000-03-15 Thread Aaron Scott-Boddendijk
this alleviates this particular problem... -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website

Re: [DUG]: Embedded Form

2000-03-14 Thread Aaron Scott-Boddendijk
that you would have otherwise used TPanel and some fiddling to do... -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED

Re: [DUG]: Quantity of a Set

2000-03-08 Thread Aaron Scott-Boddendijk
these archaic limits... However it's rare to need more than 256 elements in an enumeration set... Parser tokens or integer ranges are possible exceptions of course. -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax

Re: [DUG]: What is a .dsm file?

2000-03-08 Thread Aaron Scott-Boddendijk
I see that D5 now has a .dsm file. Can anyone tell me what this file is? D1 has it too... It's the symbol file generated if you have one of them magic compiler options switches on... Which one I forget but it most likely mentions symbols or debug info... -- Aaron Scott-Boddendijk Jump

Re: [DUG]: Quantity of a Set

2000-03-08 Thread Aaron Scott-Boddendijk
in this order. P := @S; I := Integer(P^) and ((2 shl Ord(High(Myset)))-1); // this should be 2+4+8+32 = 46; end; -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax --- New Zealand Delphi

Re: [DUG]: FOR syntax (D4+)

2000-03-07 Thread Aaron Scott-Boddendijk
Is the following syntax legal in D4 and above. The D3 compiler refuses to compile it. for (i := 0 to Pred(RegionList.Items.Count)) do ' := found but ) expected I expect the parser is told to expect something like for EXPRESSION := EXPRESSION to EXPRESSION do STATEMENT and then the

Re: [DUG]: Quantity of a Set

2000-03-07 Thread Aaron Scott-Boddendijk
); TMyEnums = set of TMyEnum; var Y :TMyEnums; Size :Integer; J :TMyEnum; begin Size := 0; for J := Low(J) to High(J) do if J in Y then inc(Size); ShowMessage('Size = '+IntToStr(Size)); end; -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax

Re: [DUG]: DLL s

2000-03-06 Thread Aaron Scott-Boddendijk
is the first item in the uses clause of both the DLL and the Application... There are string and Dynamic array issues otherwise and I'm not sure of the symptoms... -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax

Re: [DUG]: DLL s

2000-03-06 Thread Aaron Scott-Boddendijk
strings within the DLL... If they're allocated with Allocmem (?) or fixed global arrays then the ShareMem won't be the problem Personally I'd use sharemem and design using the String-type and dynamic arrays as they tidy some of the code up a bit as they avoid pointer notation. -- Aaron Scott

Re: [DUG]: Oracle and Delphi

2000-03-01 Thread Aaron Scott-Boddendijk
by clients. Many of our queries are built 'on the fly' anyway from differing sets of where clauses used for filtering so for us this isn't a very applicable methodology... -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax

Re: [DUG]: Oracle and Delphi

2000-03-01 Thread Aaron Scott-Boddendijk
... -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz

Re: [DUG]: Another way to do this?? (ADO / MS-SQL7)

2000-02-29 Thread Aaron Scott-Boddendijk
- they are after all only opinions and I'm sure the maintainers will step in when they see fit... ;) -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax --- New Zealand Delphi Users group - Delphi

Re: [DUG]: Couldn't Resist

2000-02-28 Thread Aaron Scott-Boddendijk
A rebel without a clue... a) No attachments b) Jokes in general are controversial at best as to whether they fit the purpose of the list and at least should have been [DUG-OFFTOPIC]... tsk tsk tsk -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax

Re: [DUG]: How do you get the anscestor of a class....

2000-02-27 Thread Aaron Scott-Boddendijk
type then TheClass.ClassParent returns the TClass that was inherited from. -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax --- New Zealand Delphi Users group - Delphi List - [EMAIL

Re: [DUG]: Component Properties....

2000-02-25 Thread Aaron Scott-Boddendijk
Can someone tell me why the following is illegal? I guess I am just getting tired of writing one line Set_XXX and Get_XXX property access specifiers that do something like SomeComponent.SomeProperty := PassedInValue property SomeProperty : TCaption read SomeComponent.Caption write

Re: [DUG]: VB Like Case statement

2000-02-22 Thread Aaron Scott-Boddendijk
(Progress) to High(Progress) do if Progress in Mask then SL.AddObject(GetProgressString(Progress),TObject(Progress)); SL.EndUpdate; end; function GetProgressFromList(SL :TStrings; Index :Integer):TProgress; begin result := TProgress(SL.Objects[Index]); end; -- Aaron Scott-Boddendijk

Re: [DUG]: VB Like Case statement

2000-02-22 Thread Aaron Scott-Boddendijk
the ++ Levels of abstraction are a key part of maintainable code... Personally I'm disappointed that so much Source related material reaches the Executable... Enumeration identifiers, unreachable code sections... -- Aaron Scott-Boddendijk Jump Productions (07) 838-3371 Voice (07) 838-3372 Fax

  1   2   3   >